What is the difference between .pgm and .ppm?
- Extension
- .pgm
- .ppm
- Format
- Binary
- Text
- Category
- Raster Image
- Raster Image
- Developer
- Jef Poskanzer
- Jef Poskanzer
- Description
- A PGM file is a grayscale image file saved in the portable gray map (PGM) format and encoded with one or two bytes (8 or 16 bits) per pixel. It contains header information and a grid of numbers that represent different shades of gray from black (0) to white (up to 65,536). PGM files are typically stored in ASCII text format, but also have a binary representation.
- A PPM file is a 24-bit color image formatted using a text format. It stores each pixel with a number from 0 to 65536, which specifies the color of the pixel. PPM files also store the image height and width, whitespace data, and the maximum color value.
- MIME Type
- image/x-portable-graymap
- image/x-portable-pixmap
- Sample
- sample.pgm
- sample.ppm
- Wikipedia
- .pgm on Wikipedia
- .ppm on Wikipedia