.RAW Camera RAW Image
.raw

Camera RAW Image

RAW files contain unprocessed sensor data from digital cameras, preserving full 12-16 bit dynamic range and color information before in-camera processing. Each manufacturer uses proprietary variants (Canon CR2/CR3, Nikon NEF, Sony ARW). Develop RAW files with darktable, RawTherapee, or dcraw.

بنية الصيغة
Header signature
Meta dimensions · color
Pixels image data
Camera Sensor Data12-16 bit DepthBayer / X-TransTIFF WrapperVendor-Specific
بواسطة FileDex
غير قابل للتحويل

Camera RAW files use manufacturer-specific sensor data formats requiring proprietary demosaicing algorithms.

تبحث عن تحويل؟ جرّب صيغة ذات صلة:

أسئلة شائعة

How do I open and inspect a camera RAW file?

Use darktable or RawTherapee (both free) for full development. For quick viewing, IrfanView (Windows) or macOS Preview handle most RAW formats. For metadata-only inspection, use exiftool -a -G1 input.raw to see all EXIF, MakerNote, and XMP fields without loading pixel data.

What is the difference between RAW and DNG?

RAW is a generic term for vendor-specific sensor data formats (CR2, NEF, ARW). DNG is Adobe's open standard that wraps raw sensor data in a documented TIFF-based container. DNG ensures long-term readability and can embed the original RAW file for safety.

Does converting RAW to JPEG lose quality?

Yes. RAW to JPEG applies demosaicing, white balance, tone curves, and lossy JPEG compression — all irreversible. The resulting 8-bit JPEG has 2-4 fewer stops of dynamic range. For archival, convert to 16-bit TIFF or DNG instead.

Why do different cameras use different RAW formats?

Each manufacturer designs their RAW format around their specific sensor layout (Bayer, X-Trans), bit depth (12/14/16), compression codec, and proprietary metadata (autofocus data, lens corrections). There is no industry-wide standard despite Adobe's DNG effort.

ما يميز .RAW

What is a RAW file?

RAW files contain minimally processed image data directly from a digital camera or scanner sensor. Unlike JPEG, which applies compression and processing in-camera, RAW preserves the full dynamic range and color information captured by the sensor. Each camera manufacturer uses their own RAW variant (CR2, NEF, ARW, etc.).

اكتشف التفاصيل التقنية

How to open RAW files

  • Adobe Lightroom (Windows, macOS) — Industry standard
  • Adobe Camera Raw (Windows, macOS) — Photoshop plugin
  • Capture One (Windows, macOS) — Professional
  • darktable (Windows, macOS, Linux) — Free, open-source
  • RawTherapee (Windows, macOS, Linux) — Free

Technical specifications

Property Value
Compression None or lossless
Bit Depth 12-16 bit per channel
Color Space Sensor-native (Bayer, X-Trans)
Metadata EXIF, GPS, camera settings
Variants CR2/CR3 (Canon), NEF (Nikon), ARW (Sony)

Common use cases

  • Professional photography: Maximum post-processing flexibility.
  • Landscape photography: Preserving highlight and shadow detail.
  • Archiving: Highest quality preservation of photographs.
  • HDR imaging: Merging exposures from RAW data.

المرجع التقني

نوع MIME
image/x-dcraw
المطوّر
Various camera manufacturers
سنة التقديم
1990
معيار مفتوح
لا

البنية الثنائية

Most camera RAW formats use a TIFF-based wrapper structure. The file begins with a TIFF header: bytes 0-1 are the byte order marker (49 49 for little-endian / Intel, 4D 4D for big-endian / Motorola), bytes 2-3 are the magic number (2A 00 for standard TIFF, used by CR2 and NEF; OR 52 for Sony ARW/Panasonic RW2). Bytes 4-7 contain the offset to the first IFD (Image File Directory). Each IFD is a sequence of 12-byte entries: 2-byte tag ID, 2-byte data type, 4-byte count, and 4-byte value/offset. The first IFD (IFD0) typically contains EXIF metadata, a thumbnail JPEG, and pointers to the main image data. Canon CR2 files store the raw sensor data in IFD3 as a lossless JPEG (Huffman-coded) strip; the CR2-specific tag at offset 0x10 in the TIFF header points to CR2 slice information. Nikon NEF stores compressed or uncompressed sensor data in a sub-IFD, with a MakerNote IFD containing Nikon-specific white balance, lens, and focus data. Sony ARW files use a modified TIFF structure with the sensor data compressed using Sony's proprietary lossy or lossless codec. The actual sensor data is a mosaic of single-color photosites arranged in a Color Filter Array (CFA) pattern — most commonly the Bayer pattern (RGGB, GRBG, GBRG, or BGGR) or Fujifilm's X-Trans 6x6 pattern. Each photosite stores a single luminance value at 12-14 bits (consumer) or 14-16 bits (professional cameras). RAW development software demosaics this CFA data into full-color RGB pixels, applies white balance, gamma curves, noise reduction, and lens corrections. The embedded JPEG preview (usually in IFD0 or IFD1) provides a camera-processed thumbnail for quick display without full RAW decoding.

OffsetLengthFieldExampleDescription
0x00 2 bytes Byte order 49 49 49 49 (II) = little-endian / Intel. 4D 4D (MM) = big-endian / Motorola. Determines byte order for all subsequent multi-byte fields.
0x02 2 bytes TIFF magic 2A 00 0x002A = standard TIFF (CR2, NEF, DNG). Sony ARW uses 0x0052. Identifies the file as TIFF-based.
0x04 4 bytes IFD0 offset 08 00 00 00 Byte offset to the first Image File Directory. Usually 0x08 (immediately after the header).
IFD0 2 + N*12 bytes IFD entries varies 2-byte entry count followed by 12-byte tag entries. Contains EXIF, thumbnail, and sensor data pointers.
IFD entry 12 bytes IFD tag entry 0F 01 02 00 ... Tag ID (2B), data type (2B), count (4B), value/offset (4B). Tag 0x010F = Make, 0x0110 = Model.
varies varies Sensor data (CFA) compressed or raw Bayer mosaic pixel data: 12-16 bits per photosite. Compressed (lossless JPEG, Sony codec) or uncompressed depending on camera settings.
1991Kodak DCS 100, the first commercially available DSLR, captures images in a proprietary raw format1999Nikon introduces NEF with the D1, establishing TIFF-based RAW as the professional standard2004Adobe releases DNG (Digital Negative) as an open RAW standard to address format fragmentation2008dcraw by Dave Coffin supports 400+ camera RAW formats, becoming the de facto open-source decoder2018Canon introduces CR3 format (ISOBMFF-based, replacing TIFF-based CR2) with the EOS M50
Develop RAW to 16-bit TIFF with dcraw أخرى
dcraw -T -6 -w input.raw

Outputs a 16-bit TIFF (-6) with camera white balance (-w) applied. The -T flag selects TIFF output. dcraw supports 700+ camera RAW formats including CR2, NEF, ARW, and ORF.

Extract EXIF metadata from RAW file exiftool
exiftool -Make -Model -ISO -ExposureTime -FNumber -FocalLength input.raw

Reads camera metadata from the RAW file's EXIF IFD without processing the sensor data. Shows camera model, ISO, shutter speed, aperture, and focal length.

Batch convert RAW to JPEG with darktable أخرى
darktable-cli input.raw output.jpg --width 4000 --height 3000

Processes a RAW file through darktable's rendering pipeline and exports to JPEG. Applies default development settings including demosaicing, white balance, and base curve.

RAW JPG render lossy JPEG is universally viewable and produces small files suitable for sharing, web, and social media. RAW development to JPEG applies white balance, demosaicing, tone curves, and compression — this is the standard output path for photography.
RAW TIFF render near-lossless 16-bit TIFF preserves the full dynamic range of the RAW sensor data after demosaicing, producing an archival-quality file suitable for further editing in Photoshop or print workflows. No compression artifacts.
RAW PNG render lossy PNG with 16-bit color preserves RAW quality with lossless compression for web-compatible archival. Smaller than TIFF but larger than JPEG. Suitable when transparency is not needed but lossless output is required.
منخفض

نقاط الضعف

  • Malformed TIFF IFD entries can trigger integer overflows or buffer overflows in RAW decoders that do not validate tag lengths
  • Crafted MakerNote data targeting specific vendor parsers can exploit vendor-specific decoding logic in LibRaw and dcraw

الحماية: FileDex does not open, execute, or parse RAW files. Reference page only.

darktable أداة
Free open-source RAW developer and photo workflow manager for Linux, macOS, and Windows
RawTherapee أداة
Free open-source RAW processor with advanced demosaicing algorithms and batch processing
dcraw أداة
Universal command-line RAW decoder by Dave Coffin, supporting 700+ camera models
LibRaw مكتبة
C++ library for RAW decoding, forked from dcraw. Used by darktable, digiKam, and others.
Adobe Camera Raw أداة
Adobe's proprietary RAW processing engine used in Lightroom and Photoshop (DNG-based)