You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
it's not clear for me why should an exception should be raised if exif data is not present, it can be initialized like jpeg loader or at least a dedicated exception can be raised instead. The current behavior is making it hard to handle if there is no exif.
i think this behavior in jpeg loader, is more natural:
defload(input_data, key_is_name=False):
""" py:function:: piexif.load(filename) Return exif data as dict. Keys(IFD name), be contained, are "0th", "Exif", "GPS", "Interop", "1st", and "thumbnail". Without "thumbnail", the value is dict(tag name/tag value). "thumbnail" value is JPEG as bytes. :param str filename: JPEG or TIFF :return: Exif data({"0th":dict, "Exif":dict, "GPS":dict, "Interop":dict, "1st":dict, "thumbnail":bytes}) :rtype: dict """exif_dict= {"0th":{},
"Exif":{},
"GPS":{},
"Interop":{},
"1st":{},
"thumbnail":None}
exifReader=_ExifReader(input_data)
ifexifReader.tiftagisNone:
returnexif_dict
The text was updated successfully, but these errors were encountered:
Hi
it's not clear for me why should an exception should be raised if exif data is not present, it can be initialized like jpeg loader or at least a dedicated exception can be raised instead. The current behavior is making it hard to handle if there is no exif.
i think this behavior in jpeg loader, is more natural:
The text was updated successfully, but these errors were encountered: