Skip to content

Avoid duplicated camera make in exported DNG identity - #1666

Merged
echelon merged 2 commits into
storytold:mainfrom
skybluu:fix/dng-camera-identity
Oct 14, 2026
Merged

echelon merged 2 commits into
storytold:mainfrom
skybluu:fix/dng-camera-identity

Conversation

@skybluu

@skybluu skybluu commented Oct 14, 2026 •

Copy link
Copy Markdown
Contributor

Fixes the UniqueCameraModel subissue only in #840; deliberately does not close that issue.

DNGs written from Make Canon and Model Canon EOS R6 now contain UniqueCameraModel Canon EOS R6, not Canon Canon EOS R6. Prefix matching is ASCII-case-insensitive and requires a whole-word boundary, so Canonic, Canon2, Canon_… and a following Unicode letter are not mistaken for the make. Multiword makes are matched in full. Independent Make/Model tags and the empty LightCraft fallback are preserved. Borrowed make/model slices avoid intermediate string clones.

Evidence

  • Failing-before regression observed: serialized tag was Canon Canon EOS R6.
  • All 27 DNG integration tests pass, including actual serialized tags in both TIFF byte orders, case/multiword/boundary cases and absent fields. Formatting passes.
  • Release CLI actual smoke: procedural 1800×1200 DNG with Canon/R6 metadata exported through lightcraft-cli render … -o …dng; independent ExifTool readback gives Make Canon, Model Canon EOS R6, UniqueCameraModel Canon EOS R6. Synthetic input only; no photographs committed.

No colour-matrix/calibration/noise processing changes. This is not a fix for the principal R6 chroma-noise issue, and no Adobe profile data was used.

Full Windows CI on this branch passed formatting, then stopped at the existing pipeline/src/spots.rs:250 chunks_exact lint. Parity references, layering and assets passed separately. An earlier baseline run also found test-only catalog/src/lock.rs:140 unused descriptor_copy. HEIF/full tests/WASM were not reached; no full-CI/cross-platform claim. Changelog updated.

Current-main integration: merged b3d392b4 without changing either branch’s behavior; resolved additive changelog text. All 29 DNG tests now pass; rebuilt release CLI and independently read back the actual exported identity again. Earlier 27-test count refers to the original baseline.

@echelon

echelon commented Oct 15, 2026

Copy link
Copy Markdown
Member

Thank you @skybluu! This landed on main in integration batch 35 (#1682).

If you haven't already, please join our Discord: https://discord.gg/artcraft. We'd love to have you there.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants