Free webp to jpg
Image MIME Reference
PGM

Portable Graymap

image/x-portable-graymap
VS

TIFF for Facsimile eXtended

image/tiff-fx
TIFF-FX

A complete technical comparison of Portable Graymap and TIFF for Facsimile eXtended — covering compression, feature support, browser compatibility, magic bytes, and when to choose each format.

Equal browser support

Feature Support

Feature PGM TIFF-FX
Transparency (Alpha) ✕ No ✕ No
Animation Support ✕ No ✕ No
Progressive Loading ✕ No ✕ No
HDR Support Yes ✕ No
EXIF Metadata ✕ No ✕ No
ICC Color Profile ✕ No Yes
Portable Graymap
image/x-portable-graymap
Extension
.pgm
Container Netpbm
Compression Uncompressed
Algorithm
None
Color Depth 8-bit (Grayscale), 16-bit (Grayscale)
Developed by Jef Poskanzer (Netpbm Project)
Released 1988
Magic Bytes
50 32 (ASCII) or 50 35 (Binary)
Full PGM reference →
TIFF for Facsimile eXtended
image/tiff-fx
Extension
.tiff.tif
Container TIFF 6.0 Tag Directory Structure
Compression MH / MR / MMR (CCITT Group 3 & 4) / JBIG / JPEG
Algorithm
CCITT Group 3/4JBIGJPEG
Color Depth 1-bit (Monochrome B&W), 8-bit (Grayscale/Color Indexed), 24-bit (RGB Color)
Developed by IETF (Internet Engineering Task Force)
Released 1998
Magic Bytes
49 49 2A 00 (Little-Endian) / 4D 4D 00 2A (Big-Endian)
Full TIFF-FX reference →

Browser Support Comparison

Browser PGM TIFF-FX
Chrome Chrome
Firefox Firefox
Safari Safari
Edge Edge
IE IE (Legacy)
PGM

PGM Strengths

  • Extremely simple format allows custom parsers to be written from scratch in minimal time
  • Supports 16-bit precision, making it highly valuable for scientific, medical, and height-map data where 8-bit precision is insufficient
  • ASCII encoding ('P2') allows manual editing and visual inspection of pixel values directly within a text editor
Limitations
  • Strictly limited to grayscale; cannot display color
  • Lack of compression results in massive file sizes, making it entirely impractical for web delivery or consumer storage
  • Does not support alpha transparency or modern metadata structures
TIFF-FX

TIFF-FX Strengths

  • Provides a universal, standardized format for transmitting multi-page documents over IP networks and email (Internet Fax)
  • Supports highly efficient telecom-centric compression algorithms (MMR, JBIG) that produce very small files for text documents
  • Maintains backwards compatibility with standard TIFF parsers
Limitations
  • Not supported natively by web browsers
  • Requires complex parsing of TIFF IFD tags to differentiate a true TIFF-FX file from a standard TIFF file
  • Usage is slowly declining as traditional faxing is replaced by secure PDF transmission and e-signature platforms

When to choose which format

PGM
Use PGM when…
  • Computer Vision and Machine Learning Pre-processing
  • Scientific and Medical Image Processing
  • Unix/Linux Command-Line Image Pipelines
TIFF-FX
Use TIFF-FX when…
  • Internet Fax (T.37)
  • Enterprise Fax Servers
  • Document Archiving
  • Telecommunications
Share this comparison