mirror of
https://github.com/storytold/pdfcraft.git
synced 2026-10-28 12:08:46 -06:00
Review on #3184: with no /BitsPerComponent the decoded image took the codestream's precision, which for a palette image is that of the indices. The resolved colours are decoded to 8 bits, so a 1-bit index rescaled them to 0 or 255 per channel ((64, 128, 192) became (0, 255, 255)). When the palette is applied the samples are now reported as 8-bit; an image without a palette, or one whose raw indices are kept for an /Indexed space, keeps its precision. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Gv2WwdgjmBz33GWkwgNn3Q