Image MIME Reference
Fuji-RAF
Fujifilm RAW Image
image/x-fuji-raf
VS
Valve Texture Format
image/vnd.valve.source.texture
VTF
A complete technical comparison of Fujifilm RAW Image and Valve Texture Format — covering compression, feature support, browser compatibility, magic bytes, and when to choose each format.
Equal browser support
Feature Support
| Feature | Fuji-RAF | VTF |
|---|---|---|
| Transparency (Alpha) | ✕ No | Yes |
| Animation Support | ✕ No | Yes |
| Progressive Loading | ✕ No | ✕ No |
| HDR Support | Yes | Yes |
| EXIF Metadata | Yes | ✕ No |
| ICC Color Profile | Yes | ✕ No |
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
Valve Texture Format
image/vnd.valve.source.texture
Extension
.vtf
Container
Valve Texture Format Header
Compression
DXTC (DXT1, DXT3, DXT5) / Uncompressed (BGRA8888, RGB888, etc.)
Algorithm
DXT1-DXT5None
Color Depth
8-bit, 24-bit (RGB), 32-bit (RGBA), 16-bit Floating Point (HDR)
Developed by
Valve Corporation
Released
2004
Magic Bytes
56 54 46 00
Browser Support Comparison
| Browser | Fuji-RAF | VTF |
|---|---|---|
|
|
✕ | ✕ |
|
|
✕ | ✕ |
|
|
✕ | ✕ |
|
|
✕ | ✕ |
|
|
✕ | ✕ |
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
VTF
VTF Strengths
- Extremely fast loading within the Source Engine because the block-compressed data goes directly into the GPU's VRAM without CPU decompression overhead
- Bundles mipmaps, volumetric slices, cubemap faces, and animation frames entirely within a single file
- Openly documented by the Valve Developer Community, leading to a massive ecosystem of third-party modding tools
Limitations
- Strictly tied to the Source Engine ecosystem; entirely useless in standard web or print contexts
- No native support in standard image editors without hunting down and installing specialized plugins
- Block compression algorithms (DXT) are lossy and can cause visible artifacting, especially on normal maps or smooth gradients
When to choose which format
Fuji-RAF
Use Fuji-RAF when…
- Professional Digital Photography
- Fujifilm X-Trans Sensor Image Archival
- High Dynamic Range (HDR) Post-Processing
VTF
Use VTF when…
- Source Engine Game Textures
- Custom Maps and Modding (Garry's Mod, CS:GO)
- Animated In-Game Decals and Sprays
- Environment Cubemaps (Skyboxes)