Image MIME Reference
CGM
Computer Graphics Metafile
image/cgm
VS
CMU Window Manager Raster
image/x-cmu-raster
CMU-Raster
A complete technical comparison of Computer Graphics Metafile and CMU Window Manager Raster — covering compression, feature support, browser compatibility, magic bytes, and when to choose each format.
Equal browser support
Feature Support
| Feature | CGM | CMU-Raster |
|---|---|---|
| Transparency (Alpha) | Yes | ✕ No |
| Animation Support | ✕ No | ✕ No |
| Progressive Loading | ✕ No | ✕ No |
| HDR Support | ✕ No | ✕ No |
| EXIF Metadata | ✕ No | ✕ No |
| ICC Color Profile | Yes | ✕ No |
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)
CMU Window Manager Raster
image/x-cmu-raster
Extension
.ras
Container
CMU Window Manager Bitmap
Compression
Uncompressed
Algorithm
None
Color Depth
1-bit (Monochrome), 8-bit (Indexed/Grayscale)
Developed by
Carnegie Mellon University (CMU)
Released
1980s
Magic Bytes
F1 00 40 BB
Browser Support Comparison
| Browser | CGM | CMU-Raster |
|---|---|---|
|
|
✕ | ✕ |
|
|
✕ | ✕ |
|
|
✕ | ✕ |
|
|
✕ | ✕ |
|
|
✕ | ✕ |
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
CMU-Raster
CMU-Raster Strengths
- Incredibly simple, uncompressed binary structure that was easy for early, memory-constrained UNIX workstations to parse and render
Limitations
- Completely obsolete and unsupported outside of niche historical command-line tools like Netpbm
- The shared '.ras' file extension causes frequent file misidentification and system conflicts
- Lacks all modern imaging features, including metadata, compression, and alpha channel transparency
When to choose which format
CGM
Use CGM when…
- Technical Illustrations
- Aerospace & Defense (S1000D)
- CAD/CAM
- Geophysics
CMU-Raster
Use CMU-Raster when…
- Historical UNIX / Andrew Project Archival
- Legacy Academic Computing Research