.xpm XPM image

Images

MIME typeimage/x-xpixmap
DescriptionXPM image
AcronymXPM – X PixMap
CategoryImages
Signature (magic bytes)21 20 58 50 4D 32 0A (! XPM2.)
2F 2A 20 58 50 4D 20 2A 2F (/* XPM */)

Frequently asked questions

What is a .xpm file?

A .xpm file is a “XPM image” (MIME type image/x-xpixmap). XPM stands for X PixMap.

How do I open a .xpm file?

With any image viewer that supports the format – the Photos app on Windows, Preview on macOS, Eye of GNOME or GIMP on Linux. For unusual formats a converter such as ImageMagick helps.

How can you tell a genuine .xpm file?

By the bytes at the start of the file, the signature (magic bytes): 21 20 58 50 4D 32 0A (! XPM2.) and 2F 2A 20 58 50 4D 20 2A 2F (/* XPM */). On Linux and macOS, file --mime-type example.xpm checks the real type regardless of the extension.

Which MIME type belongs to .xpm?

The MIME type is image/x-xpixmap. In the Apache web server: AddType image/x-xpixmap .xpm; in nginx: types { image/x-xpixmap xpm; }.

Nearby entries