Free webp to jpg
Image MIME Reference
APNG

Animated Portable Network Graphics

image/vnd.mozilla.apng
VS

High Efficiency Image File Format Sequence

image/heif-sequence
HEIF-Sequence

A complete technical comparison of Animated Portable Network Graphics and High Efficiency Image File Format Sequence — covering compression, feature support, browser compatibility, magic bytes, and when to choose each format.

APNG wins on browser support

Feature Support

Feature APNG HEIF-Sequence
Transparency (Alpha) Yes Yes
Animation Support Yes Yes
Progressive Loading Yes ✕ No
HDR Support ✕ No Yes
EXIF Metadata Yes Yes
ICC Color Profile Yes Yes
Animated Portable Network Graphics
image/vnd.mozilla.apng
Extension
.apng.png
Container PNG Chunk Stream
Compression Deflate (Lossless)
Algorithm
Deflate (zlib)
Color Depth 8-bit (Indexed), 24-bit (TrueColor), 32-bit (RGBA)
Developed by Mozilla Corporation (Stuart Parmenter & Vladimir Vukićević)
Released 2004
Magic Bytes
89 50 4E 47 0D 0A 1A 0A
Full APNG reference →
High Efficiency Image File Format Sequence
image/heif-sequence
Extension
.heifs.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 73 66 31
Full HEIF-Sequence reference →

Browser Support Comparison

Browser APNG HEIF-Sequence
Chrome Chrome
✓ 59
Firefox Firefox
✓ 3
Safari Safari
✓ 8
Edge Edge
✓ 79
IE IE (Legacy)
APNG

APNG Strengths

  • Supports 8-bit alpha transparency, completely solving the ugly 'white halo' problem inherent to GIFs
  • Gracefully degrades; viewers that do not support APNG will render a perfectly valid, static PNG of the first frame
  • Provides lossless compression that retains absolute pixel-perfect quality for UI elements and line art
Limitations
  • Because it relies on lossless Deflate compression, file sizes for complex, video-like animations can be massive compared to lossy formats like WebP or AVIF
  • Was initially rejected by the official PNG group, delaying its adoption for nearly a decade
  • Lacks native hardware decoding acceleration, unlike video-based animated formats (like MP4 or WebM)
HEIF-Sequence

HEIF-Sequence Strengths

  • Codec-agnostic container allows for extreme flexibility when storing multi-frame photographic data
  • Maintains the space-saving benefits of ISOBMFF shared frame data blocks
  • Excellent for archiving computational photography workloads like exposure brackets or focal stacks
Limitations
  • Codec ambiguity means a decoder might be able to parse the container but fail to decode the underlying pixels
  • Zero native web browser support
  • Complex container structure requires specialized parsing libraries to extract individual frames

When to choose which format

APNG
Use APNG when…
  • High-Quality Web Animations
  • Stickers (Apple iMessage, LINE, Discord)
  • UI Loaders with Alpha Transparency
  • GIF Replacement
HEIF-Sequence
Use HEIF-Sequence when…
  • Burst Photography
  • Focal Stacking
  • Exposure Bracketing
  • Time-Lapse Data
Share this comparison