Image MIME Reference
KTX
Khronos Texture
image/ktx
VS
Panasonic RAW Image
image/x-panasonic-raw
Panasonic-RAW-(RW2)
A complete technical comparison of Khronos Texture and Panasonic RAW Image — covering compression, feature support, browser compatibility, magic bytes, and when to choose each format.
Equal browser support
Feature Support
| Feature | KTX | Panasonic-RAW-(RW2) |
|---|---|---|
| Transparency (Alpha) | Yes | ✕ No |
| Animation Support | ✕ No | ✕ No |
| Progressive Loading | ✕ No | ✕ No |
| HDR Support | Yes | Yes |
| EXIF Metadata | ✕ No | Yes |
| ICC Color Profile | ✕ No | Yes |
Khronos Texture
image/ktx
Extension
.ktx
Container
KTX (Khronos Texture 1.1)
Compression
Uncompressed / GPU Compressed (ASTC, ETC, BCn, PVRTC)
Algorithm
ASTCETC1 / ETC2BCn (DXT)PVRTCBasis Universal (in KTX2)
Color Depth
8-bit, 16-bit, 32-bit (Integer/Float)
Developed by
Khronos Group
Released
2010
Magic Bytes
AB 4B 54 58 20 31 31 BB 0D 0A 1A 0A
Panasonic RAW Image
image/x-panasonic-raw
Extension
.raw.rw2
Container
TIFF-based (Proprietary)
Compression
Uncompressed / Panasonic Proprietary Lossless
Algorithm
NoneProprietary Lossless
Color Depth
12-bit (Per Channel), 14-bit (Per Channel), 16-bit (Per Channel - High-res mode)
Developed by
Panasonic Corporation
Released
2004
Magic Bytes
Older RAW: 49 49 2A 00 | Newer RW2: 49 49 55 00
Browser Support Comparison
| Browser | KTX | Panasonic-RAW-(RW2) |
|---|---|---|
|
|
✕ | ✕ |
|
|
✕ | ✕ |
|
|
✕ | ✕ |
|
|
✕ | ✕ |
|
|
✕ | ✕ |
KTX
KTX Strengths
- Enables direct-to-GPU texture uploading, drastically reducing load times and CPU overhead in 3D applications
- Supports complex texture types natively (mipmaps, cubemaps, 3D volumes, texture arrays)
- Standardized across major Khronos APIs (OpenGL, Vulkan, WebGL) unlike vendor-specific formats like DDS
Limitations
- Requires custom JavaScript loaders to parse and display on the web
- Zero native support in consumer image viewers or 2D photo editing software
- Format fragmentation: a KTX file containing an ASTC payload will fail to render on hardware that only supports BCn compression (KTX2 and Basis Universal solve this)
Panasonic-RAW-(RW2)
Panasonic-RAW-(RW2) Strengths
- Retains maximum sensor data, allowing significant recovery of highlights and shadows compared to in-camera JPEGs
- Modern RW2 files embed proprietary lens correction profiles (distortion, vignetting, chromatic aberration) that raw converters can automatically apply
- The unique 'IIU' signature on RW2 files makes programmatic identification extremely reliable compared to other TIFF-spoofing raw formats
Limitations
- Proprietary format requires continuous updates to third-party processing engines whenever Panasonic releases a new Lumix camera
- Produces very large file sizes, particularly when using Panasonic's High-Resolution multi-shot modes
- Cannot be directly embedded into web pages or used in standard HTML/CSS contexts
When to choose which format
KTX
Use KTX when…
- Real-time 3D Graphics
- WebGL / WebGPU Applications
- Mobile Games
- Virtual/Augmented Reality (VR/AR)
Panasonic-RAW-(RW2)
Use Panasonic-RAW-(RW2) when…
- Professional Digital Photography
- Non-destructive Image Post-Processing
- High Dynamic Range (HDR) Lumix Archival