hMatoba / Piexif

Exif manipulation with pure python script.
MIT License
367 stars 81 forks source link

Fixing tests with Pillow version >= 7.2.0 #109

Open xvuko opened 3 years ago

xvuko commented 3 years ago

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.

coveralls commented 3 years ago

Coverage Status

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