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

Workaround for #630 #698

Merged
merged 2 commits into from
Aug 7, 2020
Merged

Workaround for #630 #698

merged 2 commits into from
Aug 7, 2020

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.

* 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.

None yet

2 participants