Image MIME Reference
CMU-Raster
CMU Window Manager Raster
image/x-cmu-raster
VS
X Pixmap
image/x-xpixmap
XPM
A complete technical comparison of CMU Window Manager Raster and X Pixmap — covering compression, feature support, browser compatibility, magic bytes, and when to choose each format.
Equal browser support
Feature Support
| Feature | CMU-Raster | XPM |
|---|---|---|
| Transparency (Alpha) | ✕ No | Yes |
| Animation Support | ✕ No | ✕ No |
| Progressive Loading | ✕ No | ✕ No |
| HDR Support | ✕ No | ✕ No |
| EXIF Metadata | ✕ No | ✕ No |
| ICC Color Profile | ✕ No | ✕ No |
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
X Pixmap
image/x-xpixmap
Extension
.xpm
Container
C Source Code Header (.c / .h)
Compression
Uncompressed (Source Code)
Algorithm
None
Color Depth
Indexed Color (Custom Palette with RGB and Alpha 'None')
Developed by
Daniel Dardailler and Colas Nahaboo (Bull / X Consortium)
Released
1989
Magic Bytes
2F 2A 20 58 50 4D 20 2A 2F (ASCII '/* XPM */')
Browser Support Comparison
| Browser | CMU-Raster | XPM |
|---|---|---|
|
|
✕ | ✕ |
|
|
✕ | ✕ |
|
|
✕ | ✕ |
|
|
✕ | ✕ |
|
|
✕ |
✓
|
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
XPM
XPM Strengths
- Can be compiled directly into C or C++ source code without requiring an external asset loading mechanism
- Human-readable palette mapping allows developers to inspect, modify, or hand-craft icons directly within a text editor
- Native support for color palettes and transparency via the 'None' keyword
Limitations
- Extremely inefficient storage structure for large images, resulting in massive file bloat compared to binary formats like PNG
- Completely obsolete and unsupported in modern web browsers
- Parsing overhead requires compiling or interpreting text-based color tables at runtime
When to choose which format
CMU-Raster
Use CMU-Raster when…
- Historical UNIX / Andrew Project Archival
- Legacy Academic Computing Research
XPM
Use XPM when…
- X Window System (X11) Application Icons and Cursors
- Embedded C/C++ Firmware Color UI Assets
- Early Linux Desktop Environment Themes