Image MIME Reference
CMU-Raster
CMU Window Manager Raster
image/x-cmu-raster
VS
Pentax Electronic File
image/x-pentax-pef
Pentax-PEF
A complete technical comparison of CMU Window Manager Raster and Pentax Electronic File — covering compression, feature support, browser compatibility, magic bytes, and when to choose each format.
Equal browser support
Feature Support
| Feature | CMU-Raster | Pentax-PEF |
|---|---|---|
| Transparency (Alpha) | ✕ No | ✕ No |
| Animation Support | ✕ No | ✕ No |
| Progressive Loading | ✕ No | ✕ No |
| HDR Support | ✕ No | Yes |
| EXIF Metadata | ✕ No | Yes |
| ICC Color Profile | ✕ No | Yes |
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
Pentax Electronic File
image/x-pentax-pef
Extension
.pef
Container
TIFF-based (Proprietary)
Compression
Uncompressed / Proprietary Lossless
Algorithm
NonePentax Proprietary Lossless
Color Depth
12-bit (Per Channel), 14-bit (Per Channel)
Developed by
Pentax (now Ricoh Imaging Company, Ltd.)
Released
2003
Magic Bytes
49 49 2A 00 (Little-endian) or 4D 4D 00 2A (Big-endian)
Browser Support Comparison
| Browser | CMU-Raster | Pentax-PEF |
|---|---|---|
|
|
✕ | ✕ |
|
|
✕ | ✕ |
|
|
✕ | ✕ |
|
|
✕ | ✕ |
|
|
✕ | ✕ |
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
Pentax-PEF
Pentax-PEF Strengths
- Retains absolute maximum sensor data, enabling massive shadow recovery and highlight protection compared to compressed in-camera JPEGs
- White balance and sharpening are saved as metadata instructions rather than 'baked in', meaning they can be perfectly adjusted in post-production
- Utilizes the standard TIFF container structure, making it relatively straightforward for open-source software like LibRaw to parse
Limitations
- Proprietary format requires continuous updates to third-party processing software whenever Pentax releases a new camera model (unlike the open DNG format)
- Produces very large file sizes compared to standard web formats
- Cannot be directly embedded into web pages or used in standard HTML/CSS contexts
When to choose which format
CMU-Raster
Use CMU-Raster when…
- Historical UNIX / Andrew Project Archival
- Legacy Academic Computing Research
Pentax-PEF
Use Pentax-PEF when…
- Professional Digital Photography
- Non-destructive Image Post-Processing
- Pentax Camera Archival