-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
Added "exif" keyword argument to TIFF saving #5575
Conversation
# reset buffered io handle in case fp | ||
# was passed to libtiff, invalidating the buffer | ||
self.fp.tell() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is copied from
Pillow/src/PIL/TiffImagePlugin.py
Lines 1075 to 1077 in 94ecb27
# reset buffered io handle in case fp | |
# was passed to libtiff, invalidating the buffer | |
self.fp.tell() |
Is there some way I can upvote this? There is currently NO library for python (that I know) that will create tiffs from arbitrary arrays and exif data. It would be a huge benefit to a lot of people if PIL would support writing exif in the way that this PR deals with. Thanks! |
@dbuscombe-usgs It should be in Pillow 8.4.0, to be released next month. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Conflict needs resolving.
Resolves #4940
#5416 allowed
getexif()
to read TIFFtag_v2
data. This PR allows that data to be saved again, using theexif
keyword argument.