{"action":"created","issue":{"url":"https://api.github.com/repos/jakirkham/nanshe/issues/276","labels_url":"https://api.github.com/repos/jakirkham/nanshe/issues/276/labels{/name}","comments_url":"https://api.github.com/repos/jakirkham/nanshe/issues/276/comments","events_url":"https://api.github.com/repos/jakirkham/nanshe/issues/276/events","html_url":"https://github.com/jakirkham/nanshe/issues/276","id":101454897,"number":276,"title":"Not all of the TIFF metadata is collection","user":{"login":"jakirkham","id":3019665,"avatar_url":"https://avatars.githubusercontent.com/u/3019665?v=3","gravatar_id":"","url":"https://api.github.com/users/jakirkham","html_url":"https://github.com/jakirkham","followers_url":"https://api.github.com/users/jakirkham/followers","following_url":"https://api.github.com/users/jakirkham/following{/other_user}","gists_url":"https://api.github.com/users/jakirkham/gists{/gist_id}","starred_url":"https://api.github.com/users/jakirkham/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jakirkham/subscriptions","organizations_url":"https://api.github.com/users/jakirkham/orgs","repos_url":"https://api.github.com/users/jakirkham/repos","events_url":"https://api.github.com/users/jakirkham/events{/privacy}","received_events_url":"https://api.github.com/users/jakirkham/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-08-17T16:01:20Z","updated_at":"2015-08-17T16:12:02Z","closed_at":null,"body":"Raised by @anotherGithubLearner, it appears that metadata for other pages of a multipage TIFF are not being collected. The current strategy retrieves metadata using Pillow. However, as there is an issue seeking with Pillow using the data we have ( https://github.com/python-pillow/Pillow/issues/1244 ), we will need to use a different library to solve this problem. Many libraries go ahead and load the TIFF into memory on the first read, we would prefer not to do this."},"comment":{"url":"https://api.github.com/repos/jakirkham/nanshe/issues/comments/131875625","html_url":"https://github.com/jakirkham/nanshe/issues/276#issuecomment-131875625","issue_url":"https://api.github.com/repos/jakirkham/nanshe/issues/276","id":131875625,"user":{"login":"jakirkham","id":3019665,"avatar_url":"https://avatars.githubusercontent.com/u/3019665?v=3","gravatar_id":"","url":"https://api.github.com/users/jakirkham","html_url":"https://github.com/jakirkham","followers_url":"https://api.github.com/users/jakirkham/followers","following_url":"https://api.github.com/users/jakirkham/following{/other_user}","gists_url":"https://api.github.com/users/jakirkham/gists{/gist_id}","starred_url":"https://api.github.com/users/jakirkham/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jakirkham/subscriptions","organizations_url":"https://api.github.com/users/jakirkham/orgs","repos_url":"https://api.github.com/users/jakirkham/repos","events_url":"https://api.github.com/users/jakirkham/events{/privacy}","received_events_url":"https://api.github.com/users/jakirkham/received_events","type":"User","site_admin":false},"created_at":"2015-08-17T16:12:02Z","updated_at":"2015-08-17T16:12:02Z","body":"It turns out the `ImageDescription` can be retrieved using pseudo-code along the following lines.\r\n\r\n    t = []\r\n    f = libtiff.TIFFfile(\"image.tif\", \"r\")\r\n    try:\r\n        for i in xrange(f.get_depth()):\r\n            t.append(f.IFD[i].entries_dict[\"ImageDescription\"].human())\r\n    finally:\r\n        f.close()"}}