Skip to content

Save arbitrary tags in Tiff image files#369

Merged
aclark4life merged 21 commits intopython-pillow:masterfrom
wiredfool:tifftags
Nov 30, 2013
Merged

Save arbitrary tags in Tiff image files#369
aclark4life merged 21 commits intopython-pillow:masterfrom
wiredfool:tifftags

Conversation

@wiredfool
Copy link
Member

Fixes #290, #291.

Warning: ce0e8b6 introduces an internal changes that affects one other file in Pillow, and potentially elsewhere if people are accessing the raw, undecoded data in ImageFileDirectory.tagdata. It used to store a tuple of type, data. Now it's just data, since there's another dict with the type information. See the big comment for the ImageFileDirectory class. I think it makes sense to change, but it's not essential.

Tests to exercise the tag writing code exposed many little bugs here, both in the libtiff and python code paths. There is a good chance that there's still some silliness with nested tuples somewhere, but we'll see on that.

@wiredfool
Copy link
Member Author

Likely before merging, we should have:

  • review of if it's really a good idea to do the breaking change.
  • add this to the documentation

@aclark4life
Copy link
Member

It's probably OK to introduce a breaking change here, maybe @cgohkle or @d-schmidt can say more

@wiredfool
Copy link
Member Author

Updated the merge, Resolved the test failure.

@aclark4life
Copy link
Member

Still "We can’t automatically merge this pull request." here FWIW

@wiredfool
Copy link
Member Author

Ok, something must have changed in the last month since the last merge. I'll remerge.

@wiredfool
Copy link
Member Author

Ok, merge is clean now.

aclark4life added a commit that referenced this pull request Nov 30, 2013
Save arbitrary tags in Tiff image files
@aclark4life aclark4life merged commit 2c281da into python-pillow:master Nov 30, 2013
@wiredfool wiredfool deleted the tifftags branch April 4, 2014 20:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Save ImageDescription tag in tif files

2 participants