Filename extensions: pgm

The portable graymap format is an ASCII image format designed primarily to be portable across different platforms. It is not particularly space efficient, but can be handled by many different image manipulation programs. It is similar to ppm but can only handle shades of gray. There is also a binary variant that is more space efficient but less portable.