What is the difference between .ppm and .pgm?
- Extension
- .ppm
- .pgm
- Format
- Text
- Binary
- Category
- Raster Image
- Raster Image
- Developer
- Jef Poskanzer
- Jef Poskanzer
- Description
- 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.
- 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.
- MIME Type
- image/x-portable-pixmap
- image/x-portable-graymap
- Sample
- sample.ppm
- sample.pgm
- Wikipedia
- .ppm on Wikipedia
- .pgm on Wikipedia