|
@@ -67,9 +67,12 @@ def resize_photos(generator, writer):
|
|
im = Image.open(orig)
|
|
im = Image.open(orig)
|
|
try:
|
|
try:
|
|
exif = im._getexif()
|
|
exif = im._getexif()
|
|
- icc_profile = im.info.get("icc_profile")
|
|
|
|
except Exception:
|
|
except Exception:
|
|
exif = None
|
|
exif = None
|
|
|
|
+ try:
|
|
|
|
+ icc_profile = im.info.get("icc_profile")
|
|
|
|
+ except Exception:
|
|
|
|
+ icc_profile = None
|
|
if exif:
|
|
if exif:
|
|
for tag, value in exif.items():
|
|
for tag, value in exif.items():
|
|
decoded = ExifTags.TAGS.get(tag, tag)
|
|
decoded = ExifTags.TAGS.get(tag, tag)
|