mirror of
https://github.com/storytold/photocraft.git
synced 2026-12-02 06:20:48 +01:00
File Info only read the editable XMP description fields, so the camera settings stored in the file's EXIF block (JPEG APP1, PSD resource 1058) never reached the dialog or file.fileInfo. file.fileInfo now returns a read-only "camera" object (make, model, date taken, exposure, f-stop, ISO, focal length, 35 mm focal length, lens), formatted for display (1/250 s, f/8, ISO 400, 33.1 mm). It reads the existing photocraft_algo::exif parser, which gains DateTimeOriginal, and falls back to the XMP tiff:/exif:/aux: properties when there is no EXIF block. The dialog shows the values in a Camera Data section; labels are translated in all 16 catalogs. The EXIF reader now uses checked offset arithmetic and requires a tag's whole value to lie inside the payload, so hostile counts and offsets cannot overflow on 32-bit targets (wasm) or read past the data. Co-authored-by: Fabio Lussi <[email protected]> Co-authored-by: Claude Opus 5.5 <[email protected]> Co-authored-by: Brandon Thomas <[email protected]>