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

Use default DPI when exif provides invalid x_resolution #4147

Merged
merged 3 commits into from Dec 25, 2019

Conversation

beipang2
Copy link

Fixes #4146 Specific image can be opened by browser, but not by Pillow 6.2.

Changes proposed in this pull request:

  • Each ValueError in the logic of retrieving DPI from EXIF
  • Added test

@radarhere radarhere added the JPEG label Oct 17, 2019
Tests/test_file_jpeg.py Outdated Show resolved Hide resolved
Tests/test_file_jpeg.py Outdated Show resolved Hide resolved
@radarhere
Copy link
Member

Thanks for reporting a problem, and then solving it!

@radarhere radarhere merged commit ee30fe1 into python-pillow:master Dec 25, 2019
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.

Specific image can be opened by browser, but not by Pillow 6.2
2 participants