Skip to content

Use default DPI when exif provides invalid x_resolution - #4147

Merged
radarhere merged 3 commits into
python-pillow:masterfrom
beipang2:issue_4146
Dec 25, 2019
Merged

Use default DPI when exif provides invalid x_resolution#4147
radarhere merged 3 commits into
python-pillow:masterfrom
beipang2:issue_4146

Conversation

@beipang2

Copy link
Copy Markdown

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
Comment thread src/PIL/JpegImagePlugin.py Outdated
Comment thread Tests/test_file_jpeg.py Outdated
Comment thread Tests/test_file_jpeg.py Outdated
@radarhere

Copy link
Copy Markdown
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