Free webp to jpg
Image MIME Reference
PJPEG

Progressive JPEG (Legacy IE Alias)

image/pjpeg
VS

Portable Network Graphics (Legacy MIME)

image/x-png
PNG

A complete technical comparison of Progressive JPEG (Legacy IE Alias) and Portable Network Graphics (Legacy MIME) — covering compression, feature support, browser compatibility, magic bytes, and when to choose each format.

Equal browser support

Feature Support

Feature PJPEG PNG
Transparency (Alpha) ✕ No Yes
Animation Support ✕ No ✕ No
Progressive Loading Yes Yes
HDR Support ✕ No Yes
EXIF Metadata Yes Yes
ICC Color Profile Yes Yes
Progressive JPEG (Legacy IE Alias)
image/pjpeg
Extension
.jpeg.jpg.pjpeg.pjp.jfif
Container JPEG (ISO/IEC 10918-1)
Compression Lossy (DCT)
Algorithm
Discrete Cosine Transform (DCT)
Color Depth 8-bit, 12-bit
Developed by Joint Photographic Experts Group / Microsoft (Alias)
Released 1992
Magic Bytes
FF D8 FF E0 (JFIF) / FF D8 FF E1 (Exif)
Full PJPEG reference →
Portable Network Graphics (Legacy MIME)
image/x-png
Extension
.png
Container PNG Chunk Structure (IHDR, IDAT, IEND)
Compression Deflate (Lossless)
Algorithm
Deflate (LZ77)
Color Depth 1-bit to 16-bit (Grayscale), 8-bit (Indexed Palette), 24-bit (True Color), 32-bit (True Color with Alpha), 48-bit (High Color), 64-bit (High Color with Alpha)
Developed by PNG Development Group
Released 1996
Magic Bytes
89 50 4E 47 0D 0A 1A 0A
Full PNG reference →

Browser Support Comparison

Browser PJPEG PNG
Chrome Chrome
✓ All
✓ 1
Firefox Firefox
✓ All
✓ 1
Safari Safari
✓ All
✓ 1
Edge Edge
✓ All
✓ 12
IE IE (Legacy)
PJPEG

PJPEG Strengths

  • Progressive JPEGs (which this MIME type attempted to describe) provide excellent perceived loading speeds on slow connections by rendering a low-resolution preview first
  • Files sent with this MIME type are fully backwards compatible with any standard JPEG decoder
Limitations
  • It is a non-standard MIME type that violates IANA specifications
  • Causes strict file upload validation scripts to fail if not explicitly whitelisted or mapped
  • Creates unnecessary confusion, as the official image/jpeg MIME type already fully encompasses progressive encoding
PNG

PNG Strengths

  • The underlying format provides flawless, lossless compression and perfect 8-bit alpha channel transparency
  • Universally supported by every modern operating system, image editor, and web browser
Limitations
  • The 'image/x-png' string is an obsolete vendor quirk that forces backend developers to write redundant normalization logic in file upload scripts
  • If left unnormalized, strict MIME validators or content security policies on modern systems may incorrectly reject valid PNG files

When to choose which format

PJPEG
Use PJPEG when…
  • Legacy Internet Explorer File Uploads
  • Progressive Image Rendering (Historical context)
PNG
Use PNG when…
  • Legacy Internet Explorer File Uploads
  • Older ASP/PHP Web Applications
  • Lossless Web Graphics
Share this comparison