Support saving PDF with different X and Y resolutions#6961
Merged
radarhere merged 4 commits intopython-pillow:mainfrom Feb 24, 2023
Merged
Support saving PDF with different X and Y resolutions#6961radarhere merged 4 commits intopython-pillow:mainfrom
radarhere merged 4 commits intopython-pillow:mainfrom
Conversation
Add a `dpi` parameter to the PDF save function, which accepts a tuple with X and Y dpi. This is useful for converting tiffg3 (fax) images to pdf, which have split dpi like (204,391), (204,196) or (204,98).
This was referenced Feb 21, 2023
Member
Contributor
Author
|
I have attached a received fax tiffg3 document in SuperFine resolution, and the pdf the fax software produces from this tiff (using an ancient tiff2pdf). |
Member
|
Thanks. I've created jvanderneutstulen#1 with some suggestions. |
radarhere
approved these changes
Feb 23, 2023
hugovk
approved these changes
Feb 23, 2023
Member
hugovk
left a comment
There was a problem hiding this comment.
A little formatting nit, otherwise looks good.
Merged
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
9812f99 to
3c3d888
Compare
radarhere
added a commit
to radarhere/Pillow
that referenced
this pull request
Mar 4, 2023
radarhere
added a commit
to radarhere/Pillow
that referenced
this pull request
Mar 4, 2023
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This is useful for converting tiffg3 (fax) images to pdf, which have split dpi like (204,391), (204,196) or (204,98).
Changes proposed in this pull request:
dpiparameter to the PDF save function, which accepts a tuple with X and Y dpi.