Skip to content

Fix TIFF decoding of legacy 8-bit color maps - #3189

Merged
JimBobSquarePants merged 1 commit into
release/4.1.xfrom
js/issue-3182
Sep 14, 2026
Merged

JimBobSquarePants merged 1 commit into
release/4.1.xfrom
js/issue-3182

Conversation

@JimBobSquarePants

Copy link
Copy Markdown
Member

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 👮.
  • 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.

@JimBobSquarePants
JimBobSquarePants merged commit dee4140 into release/4.1.x Sep 14, 2026
11 checks passed
@JimBobSquarePants
JimBobSquarePants deleted the js/issue-3182 branch September 14, 2026 03:37
This was referenced Sep 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

TIFF decode: 8-bit Palette + LZW + Predictor=2 produces near-uniform near-black pixel data

1 participant