Do EXIF for DNG.

This commit is contained in:
voussoir 2026-07-26 15:00:09 -07:00
parent 6f1cc8862f
commit ad072fb39b

View file

@ -153,7 +153,7 @@ def makename(file, read_exif=False, read_mtime=False, minus_duration=False):
# Especially in cases where the user has edited a photo with software that # Especially in cases where the user has edited a photo with software that
# reset the exif but the filename refers to the original date. # reset the exif but the filename refers to the original date.
# I'm sure cases could be made either way but I'm starting here. # I'm sure cases could be made either way but I'm starting here.
if new == old and read_exif and file.extension in {'jpg', 'jpeg'}: if new == old and read_exif and file.extension in {'jpg', 'jpeg', 'dng'}:
new = makename_exif(file, old) new = makename_exif(file, old)
if new == old and re.match(final_pattern, new): if new == old and re.match(final_pattern, new):