Image MIME Reference
Kodak-KDC
Kodak KDC Raw Image
image/x-kodak-kdc
VS
Pentax Electronic File
image/x-pentax-pef
Pentax-PEF
A complete technical comparison of Kodak KDC Raw Image and Pentax Electronic File — covering compression, feature support, browser compatibility, magic bytes, and when to choose each format.
Equal browser support
Feature Support
| Feature | Kodak-KDC | Pentax-PEF |
|---|---|---|
| Transparency (Alpha) | ✕ No | ✕ No |
| Animation Support | ✕ No | ✕ No |
| Progressive Loading | ✕ No | ✕ No |
| HDR Support | Yes | Yes |
| EXIF Metadata | Yes | Yes |
| ICC Color Profile | Yes | Yes |
Kodak KDC Raw Image
image/x-kodak-kdc
Extension
.kdc
Container
TIFF/EP
Compression
Uncompressed / Proprietary Lossless
Algorithm
NoneLossless JPEG (ITU-T81)Proprietary Kodak Compression
Color Depth
10-bit, 12-bit (Per Channel)
Developed by
Eastman Kodak Company
Released
1995
Magic Bytes
49 49 2A 00 or 4D 4D 00 2A
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 | Kodak-KDC | Pentax-PEF |
|---|---|---|
|
|
✕ | ✕ |
|
|
✕ | ✕ |
|
|
✕ | ✕ |
|
|
✕ | ✕ |
|
|
✕ | ✕ |
Kodak-KDC
Kodak-KDC Strengths
- Preserves original raw sensor data, allowing modern demosaicing software to extract significantly more detail and dynamic range than the camera's built-in JPEG engine could at the time
- Utilizes the standard TIFF container structure, ensuring broad compatibility with open-source decoding libraries (like LibRaw)
Limitations
- Completely obsolete proprietary format tied to a defunct line of consumer digital cameras
- Subject to widespread misidentification by automated MIME detection libraries due to structural similarities with standard TIFFs
- Cannot be natively viewed in web browsers or standard operating system image viewers without specialized decoders
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
Kodak-KDC
Use Kodak-KDC when…
- Vintage Digital Photography Archival
- Kodak DC and EasyShare P-Series Raw Post-Processing
- Historical Imaging Research
Pentax-PEF
Use Pentax-PEF when…
- Professional Digital Photography
- Non-destructive Image Post-Processing
- Pentax Camera Archival