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

Support reading P mode TIFF images with padding #7996

Merged
merged 1 commit into from
Apr 22, 2024

Conversation

radarhere
Copy link
Member

Resolves #7995

@dwvisser
Copy link

This fixed the issue for me. In a fresh Python 3.8 virtualenv, I installed the branch:

pip install git+https://github.com/python-pillow/Pillow.git@bb2411dd01197d0a393dbcfdccfdd487a8c6d7be

Then this script ran, and output a usable PNG file:

from PIL import Image

image = Image.open("lorem_ipsum_90deg.tif")
image.save("output.png")
print("Done.")

@hugovk hugovk merged commit 02915c7 into python-pillow:main Apr 22, 2024
57 checks passed
@radarhere radarhere deleted the tiff_px branch April 22, 2024 21:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Grayscale PNG converted with standard tool to 8-bit grayscale TIFF won't load
3 participants