From 0998371ad603cb350c50cc21b59964af8dea046c Mon Sep 17 00:00:00 2001 From: Commander1024 Date: Wed, 8 Apr 2020 13:07:15 +0200 Subject: [PATCH] Added alternative comment fields, as Lightroom discards Exif.Photo.UserComment. --- functions.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/functions.py b/functions.py index 981b976..d067ec0 100644 --- a/functions.py +++ b/functions.py @@ -243,7 +243,11 @@ class Exif: if radiation: # Set new UserComment new_comment = 'Radiation ☢ : %s µS/h' % str(round(radiation, 2)) + metadata['Exif.Photo.UserComment'] = new_comment + metadata['Exif.Image.ImageDescription'] = new_comment + metadata['Iptc.Application2.Caption'] = [new_comment] + metadata['Xmp.dc.description'] = new_comment else: new_comment = None