Changes in the internal representation of ImageFileDirectory

This commit is contained in:
wiredfool 2013-10-07 17:00:54 -07:00
parent 951a5d4ce8
commit a3d267b96c

View File

@ -262,7 +262,7 @@ def getiptcinfo(im):
# get raw data from the IPTC/NAA tag (PhotoShop tags the data # get raw data from the IPTC/NAA tag (PhotoShop tags the data
# as 4-byte integers, so we cannot use the get method...) # as 4-byte integers, so we cannot use the get method...)
try: try:
type, data = im.tag.tagdata[TiffImagePlugin.IPTC_NAA_CHUNK] data = im.tag.tagdata[TiffImagePlugin.IPTC_NAA_CHUNK]
except (AttributeError, KeyError): except (AttributeError, KeyError):
pass pass