Fix TIFF decoding of legacy 8-bit color maps

Merged
JI
1mo ago
+50-12

Prerequisites

  • I have written a descriptive pull-request title
  • I have verified that there are no overlapping pull-requests open
  • I have verified that I am following the existing coding patterns and practice as demonstrated in the repository. These follow strict Stylecop rules :cop:.
  • I have provided test coverage for my change (where applicable)

Description

Fixes #3182

Fixes near-black TIFF output when ColorMap entries use the legacy 0–255 range. Uses SIMD-backed range detection to select the correct palette scaling and adds synthetic regression coverage for both 8-bit and 16-bit color maps.