Free webp to jpg
Image MIME Reference
CGM

Computer Graphics Metafile

image/cgm
VS

JPEG XR (HD Photo)

image/vnd.ms-photo
JPEG-XR

A complete technical comparison of Computer Graphics Metafile and JPEG XR (HD Photo) — covering compression, feature support, browser compatibility, magic bytes, and when to choose each format.

Equal browser support

Feature Support

Feature CGM JPEG-XR
Transparency (Alpha) Yes Yes
Animation Support ✕ No ✕ No
Progressive Loading ✕ No Yes
HDR Support ✕ No Yes
EXIF Metadata ✕ No Yes
ICC Color Profile Yes Yes
Computer Graphics Metafile
image/cgm
Extension
.cgm
Container CGM
Compression Uncompressed / Binary / Character / Clear Text
Algorithm
Deflate (in some WebCGM profiles)
Color Depth 8-bit, 16-bit, 24-bit, 32-bit
Developed by ISO / IEC
Released 1987
Magic Bytes
00 20 (Binary) / 42 45 47 49 4E 20 4D 45 54 41 46 49 4C 45 (Clear Text)
Full CGM reference →
JPEG XR (HD Photo)
image/vnd.ms-photo
Extension
.jxr.wdp.hdp
Container TIFF-like Image File Directory (IFD)
Compression Lossy (Lapped Bi-orthogonal Transform) / Lossless
Algorithm
Lapped Bi-orthogonal Transform (LBT)
Color Depth 8-bit (Grayscale, RGB, CMYK), 16-bit, 32-bit Floating Point (HDR)
Developed by Microsoft Corporation (later Joint Photographic Experts Group)
Released 2006
Magic Bytes
49 49 BC 01
Full JPEG-XR reference →

Browser Support Comparison

Browser CGM JPEG-XR
Chrome Chrome
Firefox Firefox
Safari Safari
Edge Edge
IE IE (Legacy)
CGM

CGM Strengths

  • Strictly standardized by ISO, ensuring long-term archiving and cross-platform compatibility in engineering
  • Excellent support for rich metadata, hyperlinks, and technical hotspots via the WebCGM profile
  • Can store complex 2D geometry, rasters, and text in a single lightweight file
Limitations
  • Multiple encoding schemes (Binary, Character, Clear Text) make parser development difficult
  • Zero native support in modern web browsers without third-party plugins
  • Largely replaced by SVG for general-purpose 2D vector graphics on the web
JPEG-XR

JPEG-XR Strengths

  • Excellent support for 16-bit and 32-bit floating-point HDR images without massive file size bloat
  • Native support for alpha transparency, which standard JPEG fundamentally lacks
  • Computational complexity for decoding/encoding is relatively low, making it hardware-friendly
Limitations
  • Suffered a complete failure of adoption in the web browser market outside of Microsoft's ecosystem
  • Fully superseded by modern, open formats like WebP, AVIF, and JPEG XL which offer better compression and universal browser support
  • Multiple file extensions (.wdp, .hdp, .jxr) and MIME types cause confusion and parsing fragmentation

When to choose which format

CGM
Use CGM when…
  • Technical Illustrations
  • Aerospace & Defense (S1000D)
  • CAD/CAM
  • Geophysics
JPEG-XR
Use JPEG-XR when…
  • Legacy Windows Desktop Backgrounds
  • XPS (XML Paper Specification) Documents
  • Early High Dynamic Range (HDR) Photography
  • DirectX Textures
Share this comparison