Image MIME Reference
CGM
Computer Graphics Metafile
image/cgm
VS
WebP Image
image/webp
WebP
A complete technical comparison of Computer Graphics Metafile and WebP Image — covering compression, feature support, browser compatibility, magic bytes, and when to choose each format.
WebP wins on browser support
Feature Support
| Feature | CGM | WebP |
|---|---|---|
| Transparency (Alpha) | Yes | Yes |
| Animation Support | ✕ No | Yes |
| Progressive Loading | ✕ No | ✕ No |
| HDR Support | ✕ No | ✕ No |
| 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)
WebP Image
image/webp
Extension
.webp
Container
RIFF
Compression
Lossy / Lossless
Algorithm
VP8VP8L
Color Depth
8-bit
Developed by
Google
Released
2010
Magic Bytes
52 49 46 46 XX XX XX XX 57 45 42 50
Browser Support Comparison
| Browser | CGM | WebP |
|---|---|---|
|
|
✕ |
✓ 32+
|
|
|
✕ |
✓ 65+
|
|
|
✕ |
✓ 14+
|
|
|
✕ |
✓ 18+
|
|
|
✕ | ✕ |
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
WebP
WebP Strengths
- Superior lossy compression — 25–35% smaller than JPEG at equivalent quality
- Supports both animation and full alpha transparency
- Lossless mode available with smaller file sizes than PNG
Limitations
- Slower encoding than JPEG, especially for lossless
- Not supported in Internet Explorer or very old browsers
When to choose which format
CGM
Use CGM when…
- Technical Illustrations
- Aerospace & Defense (S1000D)
- CAD/CAM
- Geophysics
WebP
Use WebP when…
- Websites
- Ecommerce
- Mobile Apps
- CMS Images