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

Removed TIFF DPI rounding #5446

Merged
merged 3 commits into from May 9, 2021

Conversation

radarhere
Copy link
Member

Helps #4129 by removing TIFF DPI rounding when loading and saving.

Because the dpi values are no longer converted to int, they are now IFDRational - so in order to allow existing pickling tests to continue passing, I have added __getstate__ and __setstate__ to IFDRational to allow it to be pickled.

src/PIL/TiffImagePlugin.py Outdated Show resolved Hide resolved
src/PIL/TiffImagePlugin.py Outdated Show resolved Hide resolved
src/PIL/TiffImagePlugin.py Outdated Show resolved Hide resolved
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
@radarhere radarhere merged commit 9bbe53a into python-pillow:master May 9, 2021
@radarhere radarhere deleted the tiff_dpi_rounding branch May 9, 2021 22:34
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.

None yet

2 participants