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

Corrected documentation of TIFF saving arguments #4015

Merged
merged 1 commit into from
Aug 9, 2019

Conversation

radarhere
Copy link
Member

Resolves #4013, which reports that the dpi argument in TIFF saving doesn't support '(numerator, denominator)' values as the documentation claims.

The documentation was added in #369

Looking at code, this functionality was removed in #1419, where 'A tuple of more than one rational tuples' 'flatten to floats' was removed, along with ifd[X_RESOLUTION] = _cvt_res(dpi[0]) being changed to ifd[X_RESOLUTION] = dpi[0].

While updating this, I also note that we round the dpi - that was added in #3709

Also removed in #1419 was the use of "inch", "cm" and "centimeter" for resolution_unit, so I'm fixing that as well.

@hugovk
Copy link
Member

hugovk commented Aug 9, 2019

Thanks.

@hugovk hugovk merged commit 845377d into python-pillow:master Aug 9, 2019
@radarhere radarhere deleted the tiff branch August 9, 2019 19:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Unclear (incorrect?) documentation of "dpi" parameter for saving TIFF images
2 participants