Free webp to jpg
Image MIME Reference
DPX

Digital Picture Exchange

image/dpx
VS

Portable Graymap

image/x-portable-graymap
PGM

A complete technical comparison of Digital Picture Exchange and Portable Graymap — covering compression, feature support, browser compatibility, magic bytes, and when to choose each format.

Equal browser support

Feature Support

Feature DPX PGM
Transparency (Alpha) Yes ✕ No
Animation Support ✕ No ✕ No
Progressive Loading ✕ No ✕ No
HDR Support Yes Yes
EXIF Metadata ✕ No ✕ No
ICC Color Profile ✕ No ✕ No
Digital Picture Exchange
image/dpx
Extension
.dpx
Container DPX (SMPTE ST 268)
Compression Uncompressed / RLE (Rarely used)
Algorithm
Uncompressed
Color Depth 8-bit, 10-bit, 12-bit, 16-bit, 32-bit (Float)
Developed by SMPTE (Society of Motion Picture and Television Engineers)
Released 1994
Magic Bytes
53 44 50 58 (Big-endian) / 58 50 44 53 (Little-endian)
Full DPX reference →
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 →

Browser Support Comparison

Browser DPX PGM
Chrome Chrome
Firefox Firefox
Safari Safari
Edge Edge
IE IE (Legacy)
DPX

DPX Strengths

  • Industry standard for transferring uncompressed, high-fidelity film and VFX data
  • Rich industry-specific metadata including timecode, keykode, and film stock information
  • Supports logarithmic color spaces (LogC, Cineon) to preserve the massive dynamic range of film negatives
Limitations
  • Massive file sizes (e.g., a single 4K 10-bit frame is ~50MB, resulting in ~1.2GB per second at 24fps)
  • Zero native support in web browsers or consumer OS image viewers
  • Requires heavy-duty, fast storage infrastructure (RAID/NVMe) to playback in real-time
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

When to choose which format

DPX
Use DPX when…
  • Film Scanning
  • Visual Effects (VFX)
  • Digital Intermediate (DI)
  • Color Grading
  • Archival
PGM
Use PGM when…
  • Computer Vision and Machine Learning Pre-processing
  • Scientific and Medical Image Processing
  • Unix/Linux Command-Line Image Pipelines
Share this comparison