Free webp to jpg
Image MIME Reference
Fuji-RAF

Fujifilm RAW Image

image/x-fuji-raf
VS

Khronos Texture 2.0

image/ktx2
KTX2

A complete technical comparison of Fujifilm RAW Image and Khronos Texture 2.0 — covering compression, feature support, browser compatibility, magic bytes, and when to choose each format.

Equal browser support

Feature Support

Feature Fuji-RAF KTX2
Transparency (Alpha) ✕ No Yes
Animation Support ✕ No ✕ No
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
Full Fuji-RAF reference →
Khronos Texture 2.0
image/ktx2
Extension
.ktx2
Container KTX 2.0
Compression Basis Universal (ETC1S / UASTC) / Zstandard (zstd) Supercompression / Uncompressed
Algorithm
ETC1SUASTCZstandard (zstd)Raw GPU Formats (ASTC, BCn)
Color Depth 8-bit, 16-bit, 32-bit (Float)
Developed by Khronos Group
Released 2021
Magic Bytes
AB 4B 54 58 20 32 30 BB 0D 0A 1A 0A
Full KTX2 reference →

Browser Support Comparison

Browser Fuji-RAF KTX2
Chrome Chrome
Firefox Firefox
Safari Safari
Edge Edge
IE IE (Legacy)
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
KTX2

KTX2 Strengths

  • Universal hardware compatibility: write once, transcode anywhere to the target GPU's preferred format (ASTC, BC7, PVRTC, etc.)
  • Drastically reduces transmission size over networks thanks to Basis Universal and Zstandard supercompression
  • Seamless integration with the glTF ecosystem for optimized 3D asset delivery
Limitations
  • Requires WebAssembly (Wasm) decoders and JavaScript loaders for web viewing, increasing initial application payload slightly
  • Encoding textures into high-quality Basis Universal UASTC can be computationally intensive and slow
  • Zero support in traditional 2D image viewers or native OS previews

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
KTX2
Use KTX2 when…
  • glTF 3D Models (KHR_texture_basisu)
  • WebGPU and WebGL Applications
  • Game Engines (Unity, Unreal, Godot)
  • Augmented and Virtual Reality (AR/VR)
Share this comparison