BuildTiff writes a little-endian TIFF with IFD0 (camera, orientation,
software, date, authorship, resolution), the Exif IFD (capture time
with sub-seconds and offset, exposure, ISO with RecommendedExposureIndex
above 65535, focal lengths, bias, body serial, lens) and a GPS IFD when
known. BuildJpegApp1 wraps it in a complete APP1 segment; strings are
capped at 2000 UTF-8 bytes on character boundaries.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012iLMBNwBE2GnphAsu4cjaC
ImageSignature.Detect identifies every BRIEF 8.1 format by magic bytes,
refining TIFF-based RAWs by the CR2 marker, DNGVersion and Make, and
ISO-BMFF files by ftyp brands; the extension only breaks ties.
MetadataReader.Read (path or seekable stream) dispatches to the
container parsers, opens files shared for read/write/delete with a
small buffer, honours cancellation and turns any parser defect into a
warning so malformed input never throws.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012iLMBNwBE2GnphAsu4cjaC
RAF: embedded JPEG Exif and preview, size from the RAF directory
(0x0111 cropped, else 0x0100), bit depth from the FujiIFD. PNG: IHDR,
eXIf and iTXt/tEXt XMP (zlib supported), seeking over image data.
WebP: VP8X canvas or VP8/VP8L headers, EXIF and XMP chunks. GIF and
BMP sizes, the JPEG XR IFD and the JPEG XL size header plus container
Exif/XML boxes.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012iLMBNwBE2GnphAsu4cjaC
BmffReader reads box headers only (32/64-bit and to-end sizes, uuid
user types, per-container count and path depth caps). HeifParser
handles hdlr/pitm/iinf (infe v2/v3)/iloc (v0-v2, multi-extent, idat)/
iprp: size from the primary item's ispe, bit depth from pixi, Exif and
XMP items; irot/imir define the orientation and override Exif because
HEIF decoders apply them. Cr3Parser reads CMT1-4 and THMB from the
Canon uuid box, PRVW, the XMP uuid, track 1's full-size JPEG through
the sample tables and the raw size from the CRAW/CMP1 header.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012iLMBNwBE2GnphAsu4cjaC
ExifParser walks IFD0, Exif, GPS and SubIFDs, selects the main raster
(largest full-resolution IFD), and enumerates embedded JPEG previews
(JPEGInterchangeFormat, single-strip/tile Compression 6/7, lossless
raw strips excluded). JpegParser scans APP1 Exif/XMP/extended XMP,
APP2 MPF large thumbnails and SOFn up to SOS, tolerating fill bytes
and garbage. Vendor MakerNotes (Canon, Nikon, Sony, Fujifilm,
Olympus/OM, Panasonic) fill serial, lens, shutter count, stabiliser,
ISO and colour temperature only when standard tags did not.
TiffTags gains GPSVersionID, GPSStatus, YCbCrPositioning,
StandardOutputSensitivity and ISOSpeed.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012iLMBNwBE2GnphAsu4cjaC
Bounds-checked positional stream reads, an in-memory span reader,
Exif/XMP date parsing, and the MetadataBuilder accumulator that applies
every fallback chain (timestamps, ISO, serial/lens, orientation,
preview kinds) in one place. XMP is read with XmlReader (no DTDs, no
resolver, 4 MB cap) in both attribute and element forms.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012iLMBNwBE2GnphAsu4cjaC