simplified clean_exif
This commit is contained in:
parent
9aff782ba7
commit
5e746bfdd3
@ -92,12 +92,8 @@ def clean_exif(exif):
|
||||
'JPEGThumbnail',
|
||||
'Thumbnail JPEGInterchangeFormat']
|
||||
|
||||
clean_exif = {}
|
||||
|
||||
for key, value in exif.items():
|
||||
if not key in disabled_tags:
|
||||
clean_exif[key] = _ifd_tag_to_dict(value)
|
||||
return clean_exif
|
||||
return dict((key, _ifd_tag_to_dict(value)) for (key, value)
|
||||
in exif.iteritems() if key not in disabled_tags)
|
||||
|
||||
|
||||
def _ifd_tag_to_dict(tag):
|
||||
|
Loading…
x
Reference in New Issue
Block a user