Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

JPEG2000 image read incorrectly #7511

Closed
sl2c opened this issue Nov 1, 2023 · 4 comments · Fixed by #7870
Closed

JPEG2000 image read incorrectly #7511

sl2c opened this issue Nov 1, 2023 · 4 comments · Fixed by #7870

Comments

@sl2c
Copy link

sl2c commented Nov 1, 2023

When doing

from PIL import Image
Image.open('test.jp2').show()

on the file
test.jp2.zip
an apparently incorrect result is displayed.

I have checked this with both the latest Pillow-10.1.0 as well as my reference Pillow-9.4.0: both results are identical and both are incorrect.

@radarhere
Copy link
Member

radarhere commented Nov 1, 2023

Am I correct in saying that you created this image

but were expecting this?

I see there is a "pclr" box in the image. It looks like an RGB palette that we're not handling yet. Is the image you attached one that can be added a test image, and distributed under Pillow's license?

@sl2c
Copy link
Author

sl2c commented Nov 4, 2023

I vaguely remember that I got this image from some student lecture notes that were freely distributed on the web. That is to say, I am not the author of this image.

@radarhere radarhere added the JPEG label Jan 19, 2024
@radarhere
Copy link
Member

It seems to me that uclouvain/openjpeg#1463 is relevant, and we might have an easier time addressing this once the next version of OpenJPEG is released.

@radarhere
Copy link
Member

It turns out that uclouvain/openjpeg#1463 didn't help.

I've created #7867 to resolve this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants