Skip to main content

Module raw_containers

Module raw_containers 

Source
Expand description

Embedded-JPEG previews and basic metadata for the two common RAW formats that are not TIFF-based, so raw_preview’s IFD walker can’t read them:

  • CR3 (Canon, 2018+): an ISO base-media (“MP4”) container. Track 1 holds a full-size JPEG; a smaller PRVW JPEG sits in a Canon uuid box as a fallback. Capture date, make, model and orientation live in the CMT1 / CMT2 TIFF blocks of the Canon metadata box.
  • RAF (Fujifilm): a fixed header whose bytes 84..92 give the offset and length of an embedded JPEG, which also carries normal EXIF.

Like the TIFF path, this shows the camera’s own rendering rather than demosaicing sensor data.

Structs§

Cr3Metadata
Capture metadata recovered from a CR3’s Canon metadata box.

Functions§

cr3_metadata
Capture date, make, model and orientation from a CR3.
cr3_preview
Largest embedded JPEG in a CR3, or None if none was found.
raf_preview
The embedded JPEG of a Fujifilm RAF (it carries the photo’s EXIF too).