Image MIME Reference
CGM
Computer Graphics Metafile
image/cgm
VS
HEVC Image Sequence (HEIF Container)
image/heic-sequence
HEIC-Sequence
A complete technical comparison of Computer Graphics Metafile and HEVC Image Sequence (HEIF Container) — covering compression, feature support, browser compatibility, magic bytes, and when to choose each format.
HEIC-Sequence wins on browser support
Feature Support
| Feature | CGM | HEIC-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)
HEVC Image Sequence (HEIF Container)
image/heic-sequence
Extension
.heics.heic
Container
HEIF / ISOBMFF (ISO/IEC 14496-12)
Compression
Lossy / Lossless
Algorithm
HEVC (H.265)
Color Depth
8-bit, 10-bit, 12-bit, 16-bit
Developed by
Moving Picture Experts Group (MPEG) / Apple
Released
2017
Magic Bytes
XX XX XX XX 66 74 79 70 68 65 76 63
Browser Support Comparison
| Browser | CGM | HEIC-Sequence |
|---|---|---|
|
|
✕ | ✕ |
|
|
✕ | ✕ |
|
|
✕ |
✓ 11+
|
|
|
✕ | ✕ |
|
|
✕ | ✕ |
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
HEIC-Sequence
HEIC-Sequence Strengths
- Incredibly efficient storage for bursts and short animations compared to GIF or motion JPEG
- Supports 16-bit color, HDR, and alpha channel transparency across all frames
- Shares frame data blocks, meaning the base image and animation data are heavily optimized for space
Limitations
- Zero support in web browsers outside the Apple ecosystem (Chrome, Firefox, Edge do not support it)
- Heavily encumbered by HEVC patent pools, hindering open-source adoption
- Complex container structure makes parsing and decoding difficult without specialized libraries
When to choose which format
CGM
Use CGM when…
- Technical Illustrations
- Aerospace & Defense (S1000D)
- CAD/CAM
- Geophysics
HEIC-Sequence
Use HEIC-Sequence when…
- Apple Live Photos
- Burst Photography
- High-Quality Animations
- Cinemagraphs