Added alternative comment fields, as Lightroom discards Exif.Photo.UserComment.

This commit is contained in:
Marcus Scholz 2020-04-08 13:07:15 +02:00
parent a9453dd51e
commit 0998371ad6
1 changed files with 4 additions and 0 deletions

View File

@ -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