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: 9-bit images use L mode instead of I;16 #7899

Closed
scaramallion opened this issue Mar 24, 2024 · 0 comments · Fixed by #7900
Closed

JPEG2000: 9-bit images use L mode instead of I;16 #7899

scaramallion opened this issue Mar 24, 2024 · 0 comments · Fixed by #7900

Comments

@scaramallion
Copy link
Contributor

scaramallion commented Mar 24, 2024

What did you do?

9-bit precision JPEG 2000 codestream with a .txt extension: 9bit.txt (rename to 9bit.j2k)

with Image.open("9bit.j2k") as im:
    assert im.mode == "I;16"
    assert im.size == (128, 128)

What did you expect to happen?

No exceptions

What actually happened?

AssertionError: assert 'L' == 'I;16'

What are your OS, Python and Pillow versions?

  • OS: Ubuntu 22.04
  • Python: 3.12
  • Pillow: Current main 19cd94b
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant