PFM to PGM
Convert Portable FloatMap (.pfm) to Portable Graymap (.pgm).
Source Portable FloatMap: PFM (Portable FloatMap) stores 32-bit floating-point pixels for HDR imagery - linear light data with full dynamic range from renderers like PBRT and environment maps for PBR lighting. Convert to EXR for film-grade compositing, to HDR/Radiance for game-engine lighting, or tone-map to PNG and JPEG for display.
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.