Digital Camera Raw (Generic Linux MIME)
image/x-dcraw
Released 1997
· by freedesktop.org (MIME mapping) / Dave Coffin (dcraw tool)
The image/x-dcraw MIME type is a generic, 'super-class' alias established by the freedesktop.org shared-mime-info specification to broadly represent digital camera raw image files. It is named after `dcraw`, the legendary open-source ANSI C program written by Dave Coffin that pioneered open decoding for dozens of proprietary raw formats. Today, this MIME type is used primarily by Linux desktop environments (like GNOME and KDE) and server applications (like Nextcloud) as a fallback identifier for unrecognized raw sensor data before it can be mapped to a specific vendor's MIME type (e.g., image/x-canon-cr2 or image/x-nikon-nef).
Technical Specifications
.raw
Varies (Often Lossless JPEG ITU-T81 or uncompressed)
image/raw
Magic Bytes & HTTP Headers
None
Browser Support Matrix
| Browser | Status | Min Version |
|---|---|---|
|
|
Not Supported | — |
|
|
Not Supported | — |
|
|
Not Supported | — |
|
|
Not Supported | — |
|
|
Not Supported | Legacy |
Advantages & Limitations
- Provides a unified, highly useful catch-all MIME type for application developers who just need to know if a file is a raw image, rather than tracking 50+ individual camera extensions
- Deeply integrated into the Linux desktop ecosystem, ensuring file manager thumbnails work seamlessly via tools like ufraw-thumbnailer
- Not an official IANA standard
- Can cause conflicts where standard TIFF files are misidentified as raw camera data by over-aggressive MIME sniffers
- The underlying 'dcraw' tool was abandoned by its creator in 2018 (though its successor, LibRaw, continues to maintain the ecosystem)
Developer Code Snippets
File Detection Steps
How to programmatically detect a image/x-dcraw
file by reading its raw bytes:
- 1 This MIME type does not have its own specific magic byte signature, as it acts as an umbrella class.
- 2 In the freedesktop.org shared-mime-info XML database, image/x-dcraw is configured as a super-class (often subclassing image/tiff). Individual formats like image/x-canon-cr2 or image/x-nikon-nef are then subclassed beneath it.
- 3 If a sniffer identifies raw sensor data but cannot match the specific proprietary camera vendor tag, it will gracefully fall back to returning image/x-dcraw.
Software Support
Conversion Tools
Share & Embed
[](https://freewebptojpg.com/mime/image/generic-raw)
<iframe src="https://freewebptojpg.com/mime/image/generic-raw/embed" width="100%" height="280" style="border:1px solid #cbd5e1;border-radius:8px;" title="Generic-RAW 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/generic-raw.json
Open JSON
Frequently Asked Questions
What is an image/x-dcraw file?
It is not a specific file format. Rather, image/x-dcraw is a generic MIME type used primarily by Linux operating systems to classify dozens of different digital camera raw formats (like CR2, NEF, ARW, and DNG) under one umbrella category.
What does 'dcraw' stand for?
dcraw (Dave Coffin's raw) is an open-source command-line tool written in ANSI C that became the foundation for almost all open-source raw image decoders (including LibRaw, UFRaw, and Darktable). The Linux community adopted its name to represent the entire category of files it could process.
Why does my Nextcloud server show image/x-dcraw instead of image/tiff?
Many raw formats (and some standard TIFFs) share the same underlying TIFF byte structure. Automated file sniffers relying on the freedesktop.org database often use image/x-dcraw as a fallback for any complex TIFF-like file that appears to contain raw camera sensor data.