Skip to content

Added EXIF class#3625

Merged
hugovk merged 6 commits intopython-pillow:masterfrom
radarhere:exif
Apr 1, 2019
Merged

Added EXIF class#3625
hugovk merged 6 commits intopython-pillow:masterfrom
radarhere:exif

Conversation

@radarhere
Copy link
Copy Markdown
Member

@radarhere radarhere commented Jan 31, 2019

Resolves #520

In addition to the methods described in that issue, I have also added get_ifd(), for reading specified subdirectories -


Regarding #2081 -

MPO files can have EXIF data for separate images (Page 9 of http://www.cipa.jp/std/documents/e/DC-007_E.pdf). This PR changes im.info["exif"] to be specific to the current MPO frame.

Within the EXIF data of the second image in files in #2081, there is a Makernote EXIF tag containing parallax data. However, the MakerNote tag does not have consistent structure across MPO images - it is manufacturer specific. See https://www.awaresystems.be/imaging/tiff/tifftags/privateifd/exif/makernote.html and http://www.exiv2.org/makernote.html.

The issue provides Fujifilm MPO images. The specification of the Fujifilm MakerNote tag can be found at http://www.ozhiker.com/electronics/pjmt/jpeg_info/fujifilm_mn.html#Fujifilm_Tags, and the parallax tag value can be found at https://www.sno.phy.queensu.ca/~phil/exiftool/TagNames/FujiFilm.html. I have added one of the images from the issue.

Within the test suite, there are Nintendo MPO images. See https://3dbrew.org/wiki/MPO and http://owl.phy.queensu.ca/~phil/exiftool/TagNames/Nintendo.html for information about their MakerNote tag.

The test added in this PR reads parallax data from both types of files.

@hugovk hugovk merged commit 7d378a8 into python-pillow:master Apr 1, 2019
@radarhere radarhere deleted the exif branch April 1, 2019 07:22
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.

No way to read Parallax tag from stereo MPO files Make EXIF plugin

3 participants