Introduction
RAF is the raw photo format of Fujifilm’s digital cameras, including the X and GFX series. It holds the data from the camera’s sensor before any processing, with the camera settings and a JPEG preview.
Many Fujifilm cameras use X-Trans sensors, whose colour filters are laid out in a 6 by 6 pattern rather than the usual 2 by 2 Bayer pattern. A raw converter has to support that layout to develop the photo well. Fujifilm has not published the format.
Structure
Unlike most raw formats, RAF is not a TIFF file. It starts with the ASCII text
FUJIFILMCCD-RAW, followed by a format version, the camera model and a
table of offsets and lengths. These point to an embedded JPEG preview with the Exif
data, a block of Fujifilm’s own tagged metadata, and the raw sensor data, which in
many cameras is itself wrapped in a small TIFF structure.
The reference pages, based on public reverse engineering, cover the header and its offset table, and the tags of the metadata block and raw section.
Not described
Fujifilm has never published RAF. These pages follow libopenraw, dcraw and ExifTool; the parts below are not covered yet.
Known, not yet covered
- Reference: the Fujifilm compressed raw coding (header compression 2 and 3), which LibRaw and rawspeed decode; the tags page states only that it exists. Also the Fujifilm maker note tags in the embedded JPEG (ExifTool lists film simulation, white balance, focus and many more) and the 0x0130 layout bits beyond the two that dcraw uses.
- Viewer: none. The file opens as raw bytes only.
Unknown
- Reference: header bytes 64 to 83 and 112 to 119 (unknown to libopenraw and ExifTool), the layout of the RAFData block per camera model, and the meaning of the width adjustment for 4284 that dcraw applies.
Links
Software
- Fujifilm X RAW Studio – Fujifilm’s free app that develops raw photos using a connected camera (Windows, macOS)
- Adobe Lightroom – Adobe’s photo library and raw developer (Windows, macOS, mobile)
- Adobe Camera Raw – the raw converter built into Photoshop (Windows, macOS)
- Capture One – raw photo editor for professional photographers (Windows, macOS)
- darktable – free raw photo developer (Windows, macOS, Linux)
- RawTherapee – free raw photo developer (Windows, macOS, Linux)
- digiKam – free photo manager with a raw import tool (Windows, macOS, Linux)
Developers
Reference
- FujiFilm tags – ExifTool’s list of the Fujifilm maker note and RAF header tags