Skip to content

Latest commit

 

History

History

netpbm

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 

NetPBM

Simple text based or binary family of uncompressed image formats.

Suitable for simple script generation.

Those formats are also collectively knows as PNM, Portable aNymap Format.

Mainly used in Linux.

Bad browser support, but can be viewed well with many Linux viewers, including eog and Krusader. Make sure to do a huge zoom. Those viewers may do dithering by default.

Magic numbers: first thing in file, specifies the exact format. Cannot be determined by extension alone because of binary/ASCII forms.

  • P1: .pbm ASCII binary
  • P2: .pgm ASCII grayscale
  • P3: .ppm ASCII RGB
  • P4: .pbm binary binary
  • P5: .pgm binary grayscale
  • P6: .ppm binary RGB