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

Fixing tests with Pillow version >= 7.2.0 #109

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

xvuko
Copy link

@xvuko xvuko commented Nov 5, 2020

This is fix for #108

From Pillow 7.2.0 release notes:

Moved from the legacy PIL.TiffImagePlugin.ImageFileDirectory_v1 to PIL.TiffImagePlugin.ImageFileDirectory_v2 in PIL.Image.Exif. This means that Exif RATIONALs and SIGNED_RATIONALs are now read as PIL.TiffImagePlugin.IFDRational, instead of as a tuple with a numerator and a denominator.

This change converts IFDRational type to tuple before conversion.

This fixes tests with Pillow version >= 7.2.0
@coveralls
Copy link

Coverage Status

Coverage increased (+0.002%) to 94.887% when pulling 5209b53 on xvuko:master into 3422fbe on hMatoba:master.

Copy link

@hartwork hartwork left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me 👍

Allowed me to address https://bugs.gentoo.org/732780 — thank you!

dotlambda added a commit to dotlambda/nixpkgs that referenced this pull request Jan 24, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants