Skip to content

Corrected reading EXIF metadata without prefix#4677

Merged
hugovk merged 1 commit intopython-pillow:masterfrom
radarhere:exif_start
Jun 7, 2020
Merged

Corrected reading EXIF metadata without prefix#4677
hugovk merged 1 commit intopython-pillow:masterfrom
radarhere:exif_start

Conversation

@radarhere
Copy link
Copy Markdown
Member

Resolves #4676

Image.Exif currently assumes that EXIF data starts with b"Exif\x00\x00". This is not the case though, with the "Raw profile type exif" in the issue's image, or with the EXIF data in Tests/images/flower2.webp.

This PR removes that assumption.

@RomanKosobrodov
Copy link
Copy Markdown

Thank you for quickly resolving the issue. Looking forward for the next release.

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.

getexif() crashes when reading empty EXIF data from a PNG file saved by RawTherapy 5.8

3 participants