RAW Formats
Camera Raw Image Formats
Overview
RAW files are the digital equivalent of film negatives. They contain the raw sensor data before any processing. This makes them ideal for professional editing, but it also means they carry extensive metadata about your camera and shooting conditions.
The good news: most RAW formats are built on TIFF structure, so once you understand TIFF, you can navigate most RAW files. The bad news: every camera manufacturer adds their own proprietary extensions.
Open Standard
DNG (Digital Negative):Adobe's documented RAW format
Proprietary
CR2/CR3 (Canon), NEF (Nikon), ARW (Sony), ORF (Olympus)
DNG (Adobe Digital Negative)
DNG is Adobe's attempt to create a universal RAW format, and it's the only fully documented one. If you have a choice, DNG is the easiest to work with because the spec is public.
Under the hood, it's TIFF with extra tags for camera-specific color data. This makes it straightforward to parse with any TIFF-aware tool.
DNG File Structure
DNG Header
| Offset | Hex | ASCII | |||||||
|---|---|---|---|---|---|---|---|---|---|
| 0000 | 49492A0008000000 | II*..... | |||||||
DNG-Specific Tags
0xC612:DNGVersion0xC614:UniqueCameraModel0xC621:ColorMatrix10xC65A:CalibrationIlluminant1Full DNG Support
PicScrub fully supports DNG files. Because DNG uses standard TIFF structure, we can remove EXIF, GPS, and other metadata using the same approach as regular TIFF files.
Proprietary Formats
Here's where things get complicated. Every camera manufacturer has their own RAW format, and while most are TIFF-based, they all have quirks. The community has reverse-engineered most of these, but documentation is scattered across various projects.
CR2 (Canon)
TIFF-based with Canon-specific IFDs and lossless JPEG compression for sensor data.
49 49 2A 00 ... 43 52 02 00 (II + "CR" + version)NEF (Nikon)
TIFF-based, typically big-endian (MM). Contains extensive Maker Notes with proprietary Nikon metadata.
ARW (Sony)
TIFF-based with Sony-specific modifications. Contains multiple image strips and proprietary encryption in some models.
Other Formats
- • ORF (Olympus):TIFF-based
- • RAF (Fujifilm):Custom structure
- • RW2 (Panasonic):TIFF-based
- • PEF (Pentax):TIFF-based
Embedded JPEG Previews
Something that catches people off guard: RAW files usually contain full JPEG previews. Your camera generates these so you can quickly review shots on the LCD. They're also what file browsers use for thumbnails.
Why Previews Exist
- • Camera LCD:Quick review without processing RAW
- • Thumbnails:File browser previews
- • Quick edit:Faster initial load in editors
Privacy Consideration
Embedded JPEG previews often contain the same EXIF metadata as the main image, including GPS coordinates. PicScrub processes these embedded images along with the main file.
Maker Notes
Maker Notes are the wild west of camera metadata. Each manufacturer stuffs whatever they want into this blob, and the format isn't documented. Some even encrypt portions of it.
Privacy Concerns
- • Camera serial number
- • Lens serial number
- • Internal firmware version
- • Shutter count
- • Focus point used
- • Custom settings
Processing Challenge
Maker Notes use undocumented, proprietary formats. Some are encrypted. Complete removal requires understanding each manufacturer's format.
Manufacturer-Specific Tag Ranges
| Manufacturer | Tag Range | Notable Tags |
|---|---|---|
| Sony | 0x7000–0x74C8 | SonyRawFileType, VignettingCorrection, DistortionCorrection |
| Canon | 0xC5E0 | CR2CFAPattern |
| Nikon | 0xC7D5 | NikonNEFInfo |
| Hasselblad | 0xB4C3, 0xC51B | HasselbladRawImage, HasselbladExif |
| Panasonic | 0xC6D2–0xC6D3 | PanasonicTitle, PanasonicTitle2 |
| Adobe DNG | 0xC612–0xC7A8 | DNGVersion, ColorMatrix, CalibrationIlluminant |
How PicScrub Processes RAW
Identify Format
Check header for TIFF structure and format-specific signatures
Parse TIFF Structure
Navigate IFD chain, identify EXIF, GPS, and Maker Note locations
Process Embedded JPEGs
Locate and clean JPEG previews at various resolutions
Remove/Zero Metadata
Remove metadata tags or zero their contents
Preserve Raw Data
Keep sensor data and essential color/calibration tags intact
Preserved
- • Raw sensor data
- • Color matrices
- • Camera calibration
- • White balance coefficients
- • Active area definition
Removed
- • EXIF metadata
- • GPS coordinates
- • Maker Notes
- • Embedded JPEG metadata
- • Serial numbers
DNG Conversion
If you're sharing RAW files and want to ensure clean metadata removal, consider converting to DNG first.
Recommended Workflow
DNG conversion strips out proprietary structures while preserving the actual image data:
- Convert to DNG using Adobe DNG Converter (free)
- Process with PicScrub to remove metadata
- Share the cleaned DNG file
This ensures the recipient can open the file without proprietary software, and all metadata is cleanly removed.