pnm
Reading, displaying and writing PNM (PPM and PGM) image files, including 16 bits per channel, in pure Python