What is the difference between .xpm and .pnm?
- Extension
- .xpm
- .pnm
- Format
- Text
- Binary
- Category
- Raster Image
- Raster Image
- Developer
- X Consortium
- Jef Poskanzer
- Description
- The XPM (X11 Pixmap Graphic) file format is a plain text file format used to store pixmap images, which are pixel-based graphics. It is designed for use with the X Window System, commonly used in Unix and Linux environments. XPM files define images in a structured format, using ASCII text to describe each pixel's color and location within the image. This format supports both monochrome and color images and allows for the definition of custom color palettes.
- The PNM (Portable Any Map Image) file format is a subset of the broader Netpbm format, designed for storing various types of digital images. It acts as an umbrella term for three specific types of grayscale, color, and black-and-white images, represented by PBM (Portable Bitmap), PGM (Portable Graymap), and PPM (Portable Pixmap) formats respectively. PNM files are known for their simplicity and ease of conversion to other image formats.
- MIME Type
- image/x-xbitmap
- application/x-portable-anymap
- Sample
- sample.xpm
- sample.pnm
- Wikipedia
- .xpm on Wikipedia
- .pnm on Wikipedia