Free webp to jpg
Image MIME Reference
JXL

JPEG XL

image/jxl
VS

PWG Raster Format

image/pwg-raster
PWG-Raster

A complete technical comparison of JPEG XL and PWG Raster Format — covering compression, feature support, browser compatibility, magic bytes, and when to choose each format.

JXL wins on browser support

Feature Support

Feature JXL PWG-Raster
Transparency (Alpha) Yes ✕ No
Animation Support Yes ✕ No
Progressive Loading Yes ✕ No
HDR Support Yes ✕ No
EXIF Metadata Yes ✕ No
ICC Color Profile Yes ✕ No
JPEG XL
image/jxl
Extension
.jxl
Container ISOBMFF / JPEG XL Codestream
Compression Lossy (VarDCT) / Lossless (Modular)
Algorithm
VarDCT (Variable block-size DCT)Modular (Predictive coding for lossless)
Color Depth 8-bit, 10-bit, 12-bit, 16-bit, 32-bit (Float)
Developed by Joint Photographic Experts Group (JPEG)
Released 2021
Magic Bytes
FF 0A (Codestream) / 00 00 00 0C 4A 58 4C 20 0D 0A 87 0A (Container)
Full JXL reference →
PWG Raster Format
image/pwg-raster
Extension
.pwg.ras
Container CUPS Raster v2 Container
Compression PackBits (Run-Length Encoding)
Algorithm
PackBits (Apple RLE variant)
Color Depth 1-bit (Monochrome/K), 8-bit (Grayscale), 24-bit (sRGB / Adobe RGB), 32-bit (CMYK)
Developed by IEEE-ISTO Printer Working Group (PWG)
Released 2011
Magic Bytes
52 61 53 32
Full PWG-Raster reference →

Browser Support Comparison

Browser JXL PWG-Raster
Chrome Chrome
Firefox Firefox
Safari Safari
✓ 17+
Edge Edge
IE IE (Legacy)
JXL

JXL Strengths

  • Capable of losslessly recompressing legacy JPEG files, saving ~20% space while retaining perfect byte-for-byte restorability
  • Highly superior progressive decoding (Saliency-driven), allowing recognizable images to load extremely fast on slow connections
  • Outperforms WebP and competes favorably with AVIF, especially at high-fidelity settings and for complex textures/photography
  • Royalty-free with an open-source reference implementation (libjxl)
Limitations
  • Google's removal of JXL support from Chrome severely hindered its adoption as a universal web standard
  • Lack of hardware decoding chips compared to video-derived codecs like AVIF (AV1)
  • File parsing logic is complex due to the split between raw codestreams and ISOBMFF containers
PWG-Raster

PWG-Raster Strengths

  • The undisputed global standard for modern, driverless printing environments, eliminating the nightmare of installing manufacturer-specific print drivers
  • Extremely lightweight to decode on embedded hardware, requiring minimal RAM buffers on the printer side
  • Strict color space and resolution rules guarantee that the printed output will successfully process without syntax errors
Limitations
  • Generates massive file sizes and network payloads compared to vector-based formats like PDF or PostScript, as every page is fully rasterized at 300+ DPI before transmission
  • No support for native rendering in web browsers, image viewers, or graphic design software without specialized CUPS developer tools
  • Cannot store complex metadata, vector text, or layers

When to choose which format

JXL
Use JXL when…
  • High-End Web Delivery (via Safari/Polyfills)
  • HDR Photography
  • Legacy JPEG Archiving
  • Digital Art & Image Storage
PWG-Raster
Use PWG-Raster when…
  • Driverless Network Printing (IPP Everywhere)
  • Apple AirPrint and Mopria Print Service Pipelines
  • CUPS (Common UNIX Printing System) Spooling
Share this comparison