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
Black-and-white PDF export regression in Pillow 8.3.x #6149
Comments
Both files display fine on Chrome web preview, but on almost every other PDF viewer tried, one looks like random garbage. |
While macOS Preview also displays the PDF correctly, I can see that Firefox does not. Testing, I found this is due to #5430 |
From the original reporter: Moon Reader on Android; Firefox, Libreoffice Draw, and Evince on Linux From me: xpdf on Linux Aside: Looks like a great feature! I love tiny PDFs |
I've created PR #6151 to resolve this. |
Black-and-white image export to PDF seems to blanket fail starting in PIL/Pillow 8.3.x. The version was reported to me by a user--I have not verified the switchover point.
Below is code which causes PDF generation to succeed (print a rectangle) in greyscale, but fails for black-and-white.
Reproduced using two different Linux versions in Python 3.x, and multiple Pillow versions.
This bug report was verified with Python 3.10.2 and Pillow 9.0.1
Originally reported as: za3k/qr-backup#24
The text was updated successfully, but these errors were encountered: