-
-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Closed
Labels
Description
What did you do?
I'm using Pillow to add image extraction capability in pypdf. I'm facing some issues with images using some CMYK palettes.
However Pillow is currently not able to process them.
What did you expect to happen?
Accept CMYK indexed images.
What actually happened?
Exception ValueError: unrecognized raw mode is raised.
What are your OS, Python and Pillow versions?
- OS: windows
- Python: 3.10.4
- Pillow: 10.0.0
from PIL using Image
img = Image.open("test.png")
img2.putpalette(b"\x00\x00\x00\xFB\x00\x00\x00\x00","CMYK")MartinThomaMartinThoma
