-
-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Closed
Labels
BugAny unexpected behavior, until confirmed feature.Any unexpected behavior, until confirmed feature.TIFF
Description
What did you do?
from io import BytesIO
from PIL import Image
img = Image.open("basi0g01.png")
img.save(BytesIO(), format="TIFF", compression="group4")What did you expect to happen?
No error raised
What actually happened?
Traceback (most recent call last):
File "./pil_bug.py", line 14, in <module>
img.save(BytesIO(), format="TIFF", compression="group4")
File "/home/lucas_cimon/.local/share/virtualenvs/fpdf2/lib/python3.8/site-packages/PIL/Image.py", line 2435, in save
save_handler(self, fp, filename)
File "/home/lucas_cimon/.local/share/virtualenvs/fpdf2/lib/python3.8/site-packages/PIL/TiffImagePlugin.py", line 1810, in _save
if not Image.core.libtiff_support_custom_tags:
AttributeError: module 'PIL._imaging' has no attribute 'libtiff_support_custom_tags'What are your OS, Python and Pillow versions?
- OS: WSL (Ubuntu 20.04)
- Python: 3.8.10
- Pillow: 64f2924
Note: I think this issue can be tagged with TIFF & Bug
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
BugAny unexpected behavior, until confirmed feature.Any unexpected behavior, until confirmed feature.TIFF
