-
Notifications
You must be signed in to change notification settings - Fork 47
QA Report: TIFF sample metadata is structurally inconsistent #2385
Copy link
Copy link
Open
Bug
1 / 11 of 1 issue completed
Copy link
Labels
BuildBuild system, CMake, compiler, or packagingBuild system, CMake, compiler, or packagingCodexCodex use indicated by MaintainerCodex use indicated by MaintainerImgImage Handling & ProcessingImage Handling & ProcessingQAMaintainer indicates topic of Quality AssuranceMaintainer indicates topic of Quality AssuranceSpecICC specification, tag, color-space, or schema scopeICC specification, tag, color-space, or schema scopeTestingCTest, regression, or test coverageCTest, regression, or test coverageciContinuous integration workflow changesContinuous integration workflow changesgpt-daybreak-blueMaintainer indicates use of Codex gpt-daybreak-blue ModelMaintainer indicates use of Codex gpt-daybreak-blue Modelneeds-triageMaintainer triage requiredMaintainer triage requiredpawgMaintainer indicates subject matter with spected to Profile Assessment Working Group (PAWG)Maintainer indicates subject matter with spected to Profile Assessment Working Group (PAWG)
Milestone
Description
Activity
Metadata
Metadata
Assignees
Labels
BuildBuild system, CMake, compiler, or packagingBuild system, CMake, compiler, or packagingCodexCodex use indicated by MaintainerCodex use indicated by MaintainerImgImage Handling & ProcessingImage Handling & ProcessingQAMaintainer indicates topic of Quality AssuranceMaintainer indicates topic of Quality AssuranceSpecICC specification, tag, color-space, or schema scopeICC specification, tag, color-space, or schema scopeTestingCTest, regression, or test coverageCTest, regression, or test coverageciContinuous integration workflow changesContinuous integration workflow changesgpt-daybreak-blueMaintainer indicates use of Codex gpt-daybreak-blue ModelMaintainer indicates use of Codex gpt-daybreak-blue Modelneeds-triageMaintainer triage requiredMaintainer triage requiredpawgMaintainer indicates subject matter with spected to Profile Assessment Working Group (PAWG)Maintainer indicates subject matter with spected to Profile Assessment Working Group (PAWG)
QA Report
2026-09-04 02:15:49 UTC
gh repo clone InternationalColorConsortium/ICS-POCFinding
TIFF sample metadata is structurally inconsistent
Raw
tiffdumpoutput showsPhotometricInterpretation=MinIsBlackorMinIsWhitewith 6, 36, or 81 samples, but no stored tag 338(
ExtraSamples). TIFF 6.0 usesExtraSamplesto account for samples beyondthe number implied by the photometric model. libtiff therefore warns and
repairs the effective in-memory directory.
Affected paths:
HybridMultiSpectralEncoding/Data/smCows380_5_780.tifHybridMultiSpectralEncoding/Results/Ref_smCows.tifSpectralEncoding/Data/smCows380_5_780.tifSpectralEncoding/Results/MS6_smCows.tifSpectralEncoding/Results/Ref_smCows.tifSpectralEncoding/Results/Spec_ms6Cows.tifSpectralEncoding/Results/Spec_smCows.tifThe two 81-band input paths are byte-identical. The other five paths are
generated outputs.
iccApplyProfilesderives extra samples only when a destination parent spaceexists and differs from the destination space. Direct spectral and N-channel
destinations keep
nExtraSamples=0. They then fall through to grayscalephotometric models, and
CTiffImg::Create()omits tag 338.Relevant code:
/opt/iccDEV/Tools/CmdLine/IccApplyProfiles/iccApplyProfiles.cpp:521-571/opt/iccDEV/Tools/CmdLine/IccApplyProfiles/TiffImg.cpp:454-519/opt/iccDEV/Tools/CmdLine/IccSpecSepToTiff/iccSpecSepToTiff.cpp:666-700The sibling
iccSpecSepToTiffcode already passesnSamples - 1unspecifiedextra samples for its spectral TIFF output.
One-line reproduction listing every warning path:
One-line raw-tag reproduction for a representative generated file:
Expected evidence is
Photometric=1,SamplesPerPixel=36, an ICC profile,and no
ExtraSamplesline.Recommended action:
N-channel image data. Do not merely silence the libtiff handler.
iccSpecSepToTiffconvention is authoritative, emitEXTRASAMPLE_UNSPECIFIEDfor every sample beyond the first fromiccApplyProfilesas well.tiffdumpassertions and a no-libtiff-warning test for direct6-, 36-, and 81-channel outputs.
compatible with the embedded ICC.2 profile describing all N samples.