Repository navigation
Conversation
…words (storytold#830). IFD0 describes a raw file's built-in preview, so its Compression tag named the thumbnail, not the sensor data: every compressed NEF read "Uncompressed". The TIFF group's Compression row is now taken from the main image IFD (the same full-resolution CFA/LinearRaw the raw decoder opens), gaining name spellings for Nikon's and Sony's raw codecs; a non-raw TIFF keeps its own row untouched. Nikon NEFs additionally get a "Maker note" group whose NEF Compression row reads tag 0x0093 from the maker note through the existing parse_makernote and spells it with the published Nikon value table (Lossless, Packed 14 bits, High Efficiency (Z-series), …), falling back to the raw number for unknown values.
This was referenced Oct 11, 2026
Member
|
Closing as a duplicate of #831, which was opened first and landed in #975 with the same fix for #830. Thanks! Generated by Claude Code |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The Compression row read IFD0, which in a TIFF-based raw describes the built-in preview — so every compressed NEF claimed "Uncompressed" (#830, seen on a Z 6II Lossless in #769).
parse_makernote(V1/V3 layouts) and spelled with the published Nikon value table — Lossless, Lossy (type 1/2), Packed 12/14 bits, High Efficiency (Z-series), Uncompressed (reduced to 12 bits) … — unknown values print as stored, and only NEFs get the row.Tests build an NEF-shaped file with the existing TIFF writer and pin: compressed/uncompressed/high-efficiency combinations, the unknown-value fallback, the Sony (no-note) and plain-TIFF paths. meta/engine/raw/catalog suites, fmt, clippy and
cargo xtask layersclean.For the reporter's Z 6II: the row now reads "Nikon NEF (Huffman compressed)" with "NEF Compression: Lossless" under Maker note.