Skip to content

Conversation

@glubsy
Copy link
Contributor

@glubsy glubsy commented Aug 5, 2020

This is a proposed workaround for #630.

  • In some cases, the function dump_IFD() in core/pe/exif.py assigns a string instead of an int as "values".
  • This value is then used as _cached_orientation in core/pe/photo.py in _get_orientation().
  • The method _plat_get_blocks() in qt/pe/photo.py was only expecting an integer for the orientation argument, so we work around the issue for now by ignoring the value if it's a string.

glubsy added 2 commits August 6, 2020 00:23
* In some cases, the function dump_IFD() in core/pe/exif.py assigns a string instead of an int as "values".
* This value is then used as _cached_orientation in core/pe/photo.py in _get_orientation().
* The method _plat_get_blocks() in qt/pe/photo.py was only expecting an integer for the orientation argument, so we work around the issue for now by ignoring the value if it's a string.
@arsenetar arsenetar merged commit 9e6b117 into arsenetar:master Aug 7, 2020
@arsenetar arsenetar mentioned this pull request Aug 8, 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.

2 participants