Skip to content
Open
9 changes: 6 additions & 3 deletions exifread/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,11 +104,14 @@ def process_file(
# deal with MakerNote contained in EXIF IFD
# (Some apps use MakerNote tags but do not use a format for which we
# have a description, do not process these).
if details and "EXIF MakerNote" in hdr.tags and "Image Make" in hdr.tags:
hdr.decode_maker_note()
if details and 'EXIF MakerNote' in hdr.tags and 'Image Make' in hdr.tags:
try:
hdr.decode_maker_note()
except:
pass

# extract thumbnails
if thumb_ifd and extract_thumbnail:
if details and thumb_ifd and extract_thumbnail:
hdr.extract_tiff_thumbnail(thumb_ifd)
hdr.extract_jpeg_thumbnail()

Expand Down
7 changes: 4 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"


[project]
name = "ExifRead"
name = "ODMExifRead"
description = "Library to extract Exif information from digital camera image files."
readme = "README.rst"
license = {file = "LICENSE"}
Expand All @@ -22,6 +22,7 @@ classifiers = [
keywords = ["exif", "image", "metadata", "photo"]
authors = [
{name = "Ianaré Sévi"},
{name = "Piero Toffanin", email = "[email protected]"}
]
dependencies = []
dynamic = ["version"]
Expand All @@ -39,8 +40,8 @@ test = [


[project.urls]
Repository = "https://github.com/ianare/exif-py"
Changelog = "https://github.com/ianare/exif-py/blob/master/ChangeLog.rst"
Repository = "https://github.com/OpenDroneMap/exif-py"
Changelog = "https://github.com/OpenDroneMap/exif-py/blob/master/ChangeLog.rst"


[project.scripts]
Expand Down