Free webp to jpg
Image MIME Reference
CGM

Computer Graphics Metafile

image/cgm
VS

High Efficiency Image File Format Sequence

image/heif-sequence
HEIF-Sequence

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

Equal browser support

Feature Support

Feature CGM HEIF-Sequence
Transparency (Alpha) Yes Yes
Animation Support ✕ No Yes
Progressive Loading ✕ No ✕ No
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 →
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 CGM HEIF-Sequence
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
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

CGM
Use CGM when…
  • Technical Illustrations
  • Aerospace & Defense (S1000D)
  • CAD/CAM
  • Geophysics
HEIF-Sequence
Use HEIF-Sequence when…
  • Burst Photography
  • Focal Stacking
  • Exposure Bracketing
  • Time-Lapse Data
Share this comparison