PBM to PGM
Convert Portable Bitmap (.pbm) to Portable Graymap (.pgm).
Source Portable Bitmap: PBM (Portable Bitmap) is the simplest member of the Netpbm family: a text header followed by pure black-and-white pixels, so a dozen lines of code can read or write it. Teaching materials, bitmap fonts, fax pipelines, and OCR preprocessing use it as a no-frills stepping stone. Convert to PNG or JPEG for general use, or batch-convert to PDF to bind multipage scans.
Target 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.