Canon Raw Version 2
image/x-canon-cr2
Released 2004
· by Canon Inc.
The image/x-canon-cr2 MIME type represents the Canon Raw Version 2 (CR2) file format. Introduced by Canon in 2004 with models like the EOS 1D Mark II and EOS 20D, CR2 replaced the earlier CRW format. It is a proprietary raw image format built on top of the standard TIFF specification. A CR2 file contains minimally processed, uncompressed or losslessly compressed (using lossless JPEG ITU-T81) pixel data directly from the camera's sensor. It also embeds EXIF metadata and usually two preview JPEGs (a small thumbnail and a high-resolution preview), allowing photographers maximum flexibility in post-processing exposure, white balance, and color grading without quality loss.
Technical Specifications
.cr2
Lossless JPEG (ITU-T81)
image/cr2
Magic Bytes & HTTP Headers
II*.....CR..
Browser Support Matrix
| Browser | Status | Min Version |
|---|---|---|
|
|
Not Supported | — |
|
|
Not Supported | — |
|
|
Not Supported | — |
|
|
Not Supported | — |
|
|
Not Supported | Legacy |
Advantages & Limitations
- 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
- 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
Developer Code Snippets
File Detection Steps
How to programmatically detect a image/x-canon-cr2
file by reading its raw bytes:
- 1 CR2 files begin with the standard TIFF little-endian magic bytes 'II*\0' (Hex: 49 49 2A 00).
- 2 They are followed by a 4-byte integer offset to the first IFD (usually 0x00000010, Hex: 10 00 00 00).
- 3 The distinguishing CR2 signature 'CR\x02\x00' (Hex: 43 52 02 00) is located precisely at byte offset 8.
Software Support
ImageMagick
Conversion Tools
Share & Embed
[](https://freewebptojpg.com/mime/image/canon-cr2)
<iframe src="https://freewebptojpg.com/mime/image/canon-cr2/embed" width="100%" height="280" style="border:1px solid #cbd5e1;border-radius:8px;" title="Canon-CR2 Specs"></iframe>
JSON API
All data on this page is available as a free, open JSON API. Use it in your project, documentation, or tooling.
GET https://freewebptojpg.com/mime/image/canon-cr2.json
Open JSON
Frequently Asked Questions
What is a CR2 file?
A CR2 file is a raw image file generated by Canon digital cameras. It contains raw, unprocessed sensor data, offering significantly higher dynamic range, detail, and color depth compared to a standard JPEG image.
How do I open a CR2 file?
Because CR2 is a raw format, standard web browsers and basic image viewers cannot render it natively. You need specialized software like Adobe Lightroom, Adobe Photoshop (via Camera Raw), Capture One, or free alternatives like RawTherapee and darktable.
What is the difference between CR2 and CR3?
CR3 is the successor to CR2, introduced by Canon in 2018. While CR2 is based on the TIFF file structure, CR3 is based on the ISO Base Media File Format (similar to MP4/HEIF) and introduces a new compressed raw option (C-RAW) that drastically reduces file size while maintaining high image quality.