Portable Pixel Map (PPM)

Back

Format

  1. Line 1 contains the Magic Number
  2. Line 2 contains width and height separated by a space
  3. Line 3 contains max color value, must be less than 65536 and greater than 0

Example ppm file

P6
2 1
255
255 0 0 255 0 0

Specification