Image MIME Reference
CGM
Computer Graphics Metafile
image/cgm
VS
Fujifilm RAW Image
image/x-fuji-raf
Fuji-RAF
A complete technical comparison of Computer Graphics Metafile and Fujifilm RAW Image — covering compression, feature support, browser compatibility, magic bytes, and when to choose each format.
Equal browser support
Feature Support
| Feature | CGM | Fuji-RAF |
|---|---|---|
| Transparency (Alpha) | Yes | ✕ No |
| Animation Support | ✕ No | ✕ No |
| 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)
Fujifilm RAW Image
image/x-fuji-raf
Extension
.raf
Container
Proprietary RAF Container
Compression
Uncompressed / Lossless Compressed / Lossy Compressed (Modern firmware)
Algorithm
NoneProprietary LosslessProprietary Lossy
Color Depth
14-bit (Per Channel - X-Series), 16-bit (Per Channel - GFX Series)
Developed by
Fujifilm Corporation
Released
2000
Magic Bytes
46 55 4A 49 46 49 4C 4D 43 43 44 2D 52 41 57 20
Browser Support Comparison
| Browser | CGM | Fuji-RAF |
|---|---|---|
|
|
✕ | ✕ |
|
|
✕ | ✕ |
|
|
✕ | ✕ |
|
|
✕ | ✕ |
|
|
✕ | ✕ |
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
Fuji-RAF
Fuji-RAF Strengths
- Retains absolute maximum sensor data, enabling massive shadow recovery and highlight protection compared to compressed in-camera JPEGs
- Stores proprietary Fujifilm Film Simulation metadata (like Classic Chrome or Acros), allowing editors to perfectly replicate in-camera aesthetics
- Very distinct and reliable magic header makes programmatic file detection foolproof
Limitations
- Proprietary format requires continuous updates to third-party software (like Lightroom) whenever Fujifilm releases a new camera
- The X-Trans sensor matrix requires highly specialized demosaicing algorithms that are extremely computationally expensive, leading to slower import and rendering times
- Completely unsupported in standard web browsers and basic operating system image viewers
When to choose which format
CGM
Use CGM when…
- Technical Illustrations
- Aerospace & Defense (S1000D)
- CAD/CAM
- Geophysics
Fuji-RAF
Use Fuji-RAF when…
- Professional Digital Photography
- Fujifilm X-Trans Sensor Image Archival
- High Dynamic Range (HDR) Post-Processing