Image MIME Reference
Canon-CR2
Canon Raw Version 2
image/x-canon-cr2
VS
Epson Raw Format
image/x-epson-erf
Epson-ERF
A complete technical comparison of Canon Raw Version 2 and Epson Raw Format — covering compression, feature support, browser compatibility, magic bytes, and when to choose each format.
Equal browser support
Feature Support
| Feature | Canon-CR2 | Epson-ERF |
|---|---|---|
| Transparency (Alpha) | ✕ No | ✕ No |
| Animation Support | ✕ No | ✕ No |
| Progressive Loading | ✕ No | ✕ No |
| HDR Support | Yes | Yes |
| EXIF Metadata | Yes | Yes |
| ICC Color Profile | Yes | ✕ No |
Canon Raw Version 2
image/x-canon-cr2
Extension
.cr2
Container
TIFF
Compression
Lossless JPEG (ITU-T81)
Algorithm
Lossless JPEG (ITU-T81)
Color Depth
12-bit (Per Channel), 14-bit (Per Channel)
Developed by
Canon Inc.
Released
2004
Magic Bytes
49 49 2A 00 10 00 00 00 43 52 02 00
Epson Raw Format
image/x-epson-erf
Extension
.erf
Container
TIFF/EP
Compression
Uncompressed / Lossless JPEG (ITU-T81)
Algorithm
NoneLossless JPEG
Color Depth
12-bit (Per Channel)
Developed by
Seiko Epson Corporation
Released
2004
Magic Bytes
49 49 2A 00 or 4D 4D 00 2A
Browser Support Comparison
| Browser | Canon-CR2 | Epson-ERF |
|---|---|---|
|
|
✕ | ✕ |
|
|
✕ | ✕ |
|
|
✕ | ✕ |
|
|
✕ | ✕ |
|
|
✕ | ✕ |
Canon-CR2
Canon-CR2 Strengths
- Retains maximum sensor data, allowing extreme recovery of highlights and shadows that would be permanently lost in a JPEG
- White balance and color profiling are not 'baked in', meaning they can be completely altered in post-production without degrading the image
- Lossless compression ensures perfect pixel accuracy while reducing file size compared to fully uncompressed formats
Limitations
- Proprietary format means it requires constant updates to raw processing engines (like Adobe Camera Raw) every time Canon releases a new camera model
- Produces very large file sizes (often 20MB to 40MB per image depending on sensor resolution)
- Cannot be directly embedded into web pages or used in standard HTML/CSS contexts
Epson-ERF
Epson-ERF Strengths
- Preserves original raw sensor data, allowing extreme recovery of highlights and shadows compared to in-camera JPEGs
- Utilizes the standard TIFF container structure, making it relatively easy for open-source software (like dcraw and LibRaw) to parse and decode
Limitations
- Completely obsolete proprietary format tied to a defunct line of digital cameras
- Requires parsing EXIF metadata to differentiate it from standard TIFF files programmatically
- Cannot be natively viewed in web browsers or standard operating system image viewers without specialized codecs
When to choose which format
Canon-CR2
Use Canon-CR2 when…
- Professional Digital Photography
- Non-destructive Image Post-Processing
- High Dynamic Range (HDR) Imaging Archival
Epson-ERF
Use Epson-ERF when…
- Vintage Digital Photography (Epson R-D1)
- Non-destructive Image Post-Processing
- Raw Imaging Archival