Free webp to jpg
Image MIME Reference
HEIF

High Efficiency Image File Format

image/heif
VS

Progressive JPEG (Legacy IE Alias)

image/pjpeg
PJPEG

A complete technical comparison of High Efficiency Image File Format and Progressive JPEG (Legacy IE Alias) — covering compression, feature support, browser compatibility, magic bytes, and when to choose each format.

PJPEG wins on browser support

Feature Support

Feature HEIF PJPEG
Transparency (Alpha) Yes ✕ No
Animation Support Yes ✕ No
Progressive Loading ✕ No Yes
HDR Support Yes ✕ No
EXIF Metadata Yes Yes
ICC Color Profile Yes Yes
High Efficiency Image File Format
image/heif
Extension
.heif.hif
Container HEIF / ISOBMFF (ISO/IEC 14496-12)
Compression Lossy / Lossless
Algorithm
Codec Agnostic (HEVC, AVC, JPEG, AV1)
Color Depth 8-bit, 10-bit, 12-bit, 16-bit
Developed by Moving Picture Experts Group (MPEG)
Released 2015
Magic Bytes
XX XX XX XX 66 74 79 70 6D 69 66 31
Full HEIF reference →
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 →

Browser Support Comparison

Browser HEIF PJPEG
Chrome Chrome
✓ All
Firefox Firefox
✓ All
Safari Safari
✓ All
Edge Edge
✓ All
IE IE (Legacy)
HEIF

HEIF Strengths

  • Highly flexible container that can store image bursts, animations, focal stacks, and stereo 3D images in one file
  • Natively supports depth maps and alpha channels, making it perfect for computational photography
  • When paired with modern codecs like HEVC or AV1, it provides massive storage savings over legacy formats like JPEG
Limitations
  • Codec agnosticism makes broad software decoding difficult, as the container might hold proprietary or unsupported codecs
  • Zero cross-platform web browser support, requiring conversion for online publishing
  • Often confused with the more specific 'image/heic' and 'image/avif' MIME types
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

When to choose which format

HEIF
Use HEIF when…
  • Digital Photography
  • Camera Capture
  • Image Archiving
  • Multi-image composites
PJPEG
Use PJPEG when…
  • Legacy Internet Explorer File Uploads
  • Progressive Image Rendering (Historical context)
Share this comparison