PGM to JXL
Convert Portable Graymap (.pgm) to JPEG XL (.jxl).
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 JPEG XL: JXL (JPEG XL) is the 2021 ISO standard designed to retire both JPEG and PNG in one stroke: about 60 percent smaller than JPEG at equal quality, with lossless mode, alpha, animation, 16-bit HDR, and the unique ability to losslessly re-compress existing JPEGs for another 20 percent savings. Chrome and Firefox support it, and photo archives are early adopters. Convert to JPEG or PNG where legacy software still rules.