mirror of
https://github.com/storytold/photocraft.git
synced 2026-10-27 03:17:05 -06:00
embedded_preview_color_space only read the EXIF ColorSpace, but Nikon bodies write none: they say Adobe RGB only in the maker note (tag 0x001E: 1 sRGB, 2 Adobe RGB). A Nikon NEF with Adobe RGB selected had its JPEG preview read as sRGB by the colour fit. When the EXIF does not state a colour space, the Nikon maker note's is used (the EXIF still wins, a DNG still states nothing, other makers' maker notes are not read). The maker-note locator in tiffep.rs is shared. A packed Nikon NEF with the tag joins the hostile-input seeds, and rawinfo prints the stated colour space. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Rj8vs4QyUES3uwgX6SuGGh