Skip to content

Do not use palette from grayscale or bilevel colorspace when reading JPEG2000 images#9468

Open
radarhere wants to merge 3 commits intopython-pillow:mainfrom
radarhere:jpeg2000_l
Open

Do not use palette from grayscale or bilevel colorspace when reading JPEG2000 images#9468
radarhere wants to merge 3 commits intopython-pillow:mainfrom
radarhere:jpeg2000_l

Conversation

@radarhere
Copy link
Member

@radarhere radarhere commented Mar 16, 2026

Resolves #9455

Allows the first image from #9455 to be read correctly.

If a JPEG2000 image has a ColorSpace of Bi-level (0 or 15) or Grayscale (17), then leave it as an L mode image, rather than using the palette.

@hugovk
Copy link
Member

hugovk commented Mar 20, 2026

This now has a conflict.

@radarhere
Copy link
Member Author

The conflict is resolved.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

2 participants