Free webp to jpg
Image MIME Reference
Harlequin-PGB

Global Graphics Page Graphics Buffer

image/vnd.globalgraphics.pgb
VS

Portable Anymap

image/x-portable-anymap
PNM

A complete technical comparison of Global Graphics Page Graphics Buffer and Portable Anymap — covering compression, feature support, browser compatibility, magic bytes, and when to choose each format.

Equal browser support

Feature Support

Feature Harlequin-PGB PNM
Transparency (Alpha) ✕ No ✕ No
Animation Support ✕ No ✕ No
Progressive Loading ✕ No ✕ No
HDR Support ✕ No ✕ No
EXIF Metadata ✕ No ✕ No
ICC Color Profile Yes ✕ No
Global Graphics Page Graphics Buffer
image/vnd.globalgraphics.pgb
Extension
.pgb
Container Proprietary Harlequin Raster Container
Compression Uncompressed / Run-Length Encoding (RLE)
Algorithm
Proprietary RLENone
Color Depth 1-bit (Monochrome Separations), 8-bit (Grayscale), 8-bit/10-bit (Contone), CMYK / N-Color Spot Channels
Developed by Global Graphics Software (Hybrid Software Group)
Released 1990s
Magic Bytes
Unknown (Proprietary Harlequin Header)
Full Harlequin-PGB reference →
Portable Anymap
image/x-portable-anymap
Extension
.pnm
Container Netpbm
Compression Uncompressed
Algorithm
None
Color Depth 1-bit (PBM), 8-bit to 16-bit (PGM), 24-bit to 48-bit (PPM)
Developed by Jef Poskanzer (Netpbm Project)
Released 1988
Magic Bytes
50 31, 50 32, 50 33, 50 34, 50 35, or 50 36
Full PNM reference →

Browser Support Comparison

Browser Harlequin-PGB PNM
Chrome Chrome
Firefox Firefox
Safari Safari
Edge Edge
IE IE (Legacy)
Harlequin-PGB

Harlequin-PGB Strengths

  • Unlike generic 1-bit TIFFs, PGB files inherently encapsulate vital print-job metadata within their headers (e.g., job name, page number, separation colors, screening angles)
  • Highly optimized for ultra-fast viewing and processing within professional printing workflows
Limitations
  • Completely proprietary and closed-source, locking its usage strictly to Harlequin-powered RIP environments
  • Zero support in standard desktop operating systems, web browsers, or consumer image editing software like Photoshop or GIMP
PNM

PNM Strengths

  • Unparalleled simplicity: parsers and writers for PNM files can be written from scratch in C or Python in just a few minutes without relying on external libraries
  • Serves as an excellent foundational teaching tool for computer science students learning about image arrays and raster graphics
  • Flawlessly pipes through Unix command-line utilities for robust automated image processing (via the Netpbm suite)
Limitations
  • Zero compression natively results in astronomical file sizes, making it entirely impractical for web delivery or consumer storage
  • No support for standard metadata formats like EXIF, XMP, or ICC color profiles
  • No native alpha channel support in the classic PNM specification (though the newer PAM format 'P7' addresses this)

When to choose which format

Harlequin-PGB
Use Harlequin-PGB when…
  • Commercial Printing Output
  • Computer-to-Plate (CTP) Manufacturing
  • Prepress Soft Proofing (e.g., FirstPROOF)
  • Harlequin RIP Spooling Pipelines
PNM
Use PNM when…
  • Unix/Linux Command-Line Image Processing (Netpbm suite)
  • Academic Computer Vision Research
  • Intermediary Format for Image Format Conversion
Share this comparison