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
Can't save multi-page TIFF as PDF #3267
Comments
To provide a partial answer, the 'IndexError: list index out of range' issue was fixed in #3137, so if you update to Pillow 5.2.0, that should be fixed. Are you able to provide the tiffinfo from the generated 383201 x 0 image? |
I can confirm that the
Only the @radarhere: I can also offer you to privately send you test files when you promise to not share them and destroy them afterwards. |
@radarhere Indeed the issue is fixed in master now! |
Thanks both! |
I have a
tiff
image with multiple pages.tiffinfo
gives the following outputWhen I save it again as multi-page
tiff
, I can also view it without problems:When I save it as multi-page
pdf
, it has the correct number of pages, but a page size of383201 x 0 mm
.When I save the pages separately as
png
, everything works without problems.When I save the pages separately as
pdf
an error is thrown
For copyright reasons, I can't include my test image. I verified that the code works in general, by using a multi-page
tiff
created via #2804. The format from that image is:So it uses 3 channels with 8 bits each whereas my sample usees a black/white 1 bit image and specifies additional attributes like resolution, compression, fill-order, orientation, page number.
I am using Pillow
5.1.0
with Python3.6.5
on Ubuntu18.04
.The text was updated successfully, but these errors were encountered: