PGM to PNM
Convert Portable Graymap (.pgm) to Portable Any Map (.pnm).
Source Portable Graymap: PGM (Portable Graymap) is Netpbm's grayscale member: a minimal header plus an 8- or 16-bit pixel matrix, with an ASCII variant humans can literally read. Computer-vision coursework and algorithm prototypes (edge detection, thresholding) love it for zero friction. Convert to PNG for lossless general use, to JPEG for compact sharing, or batch to TIFF for pro tools.
Target Portable Any Map: PNM (Portable Any Map) is the umbrella for Netpbm's family - PBM, PGM, PPM, and PAM - defined by a philosophy of minimal headers and raw pixels that any language can parse in minutes. It remains the hub format for ImageMagick and Netpbm toolchains and a teaching staple. Convert to PNG or JPEG for daily use, or to TIFF for professional workflows.