Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

Make EXIF plugin #520

wiredfool opened this Issue Feb 6, 2014 · 8 comments


None yet
5 participants

wiredfool commented Feb 6, 2014

Exif support (labeled experimental since 2003) is somewhat adequate for reading, but there's no clear way to change a value and then write it out. We currently support writing Exif as byte strings, with no way to make them apart from manually setting up nested TiffImagePlugin.ImageFileDirectory instances, then calling save into a file pointer.

  • Image.getexif() should exist, and return an Exif object.
  • The Exif object should export a dictionary interface.
  • The Exif object should have a toBytes() method returning the correct bytes.
  • Exif.load(bytes).toBytes() should roundtrip.
  • This should work:
exif = Exif()
exif['Orientation'] = 1  
im.save('temp.jpg', exif=exif)

@saimn saimn referenced this issue in saimn/sigal Feb 12, 2014


Autorotate gallery images #72

@aclark4life aclark4life added this to the 2.5.0 milestone Apr 7, 2014

@aclark4life aclark4life modified the milestones: Future, 2.5.0 Jun 1, 2014

mongoh commented Jun 12, 2014

Can the EXIF tags (or any metadata) be preserved when resizing or generating thumbnails?

hMatoba commented Sep 27, 2014

I wrote a Exif class, that is subclass of dict. Methods "to_bytes" and "load" are added. How is this for prototype?


wiredfool commented Sep 30, 2014

Thanks. I'll take a look, probably after we get 2.6.0 out

@wiredfool wiredfool added the Tiff label Nov 27, 2014

reagle commented Jan 2, 2015

I noticed the bump to 2.7.0, so any thought to this bug?


wiredfool commented Jan 6, 2015

It didn't get worked on.


wiredfool commented Jan 6, 2015

There is some action on dealing with tiff IFDs in #1059, so something may still come of it. (Though, that PR needs to be worked on due to incompatibilities with existing code)

reagle commented Jan 2, 2016

We're now in version 3+, I wonder if this has this been touched?


wiredfool commented Jan 2, 2016

No, but there have been some underlying changes to the tiff ifd code that may lead to motion. It certainly needs to be done.

Sent from my iPad

On Jan 2, 2016, at 3:15 PM, Joseph Reagle notifications@github.com wrote:

We're now in version 3+, I wonder if this has this been touched?

Reply to this email directly or view it on GitHub.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment