diff --git a/pkgs/additional/sane-scripts/src/sane-tag-music b/pkgs/additional/sane-scripts/src/sane-tag-music index ee75bade8..f1b2d5d0e 100755 --- a/pkgs/additional/sane-scripts/src/sane-tag-music +++ b/pkgs/additional/sane-scripts/src/sane-tag-music @@ -44,6 +44,10 @@ # - UserComment # - XPAuthor (intended as fallback when Artist is unset) # - XPSubject (i.e. who is in the photo) +# - XMP (GIF, PDF, JPEG, PNG): +# - XMP:Album +# - XMP:Author +# - XMP:Producer # mutagen docs: # - """ @@ -628,7 +632,14 @@ class MediaFile: meta = MutagenMetadata.new(f, mutagen.oggvorbis.OggVorbis(f)) elif ext == 'opus': meta = MutagenMetadata.new(f, mutagen.oggopus.OggOpus(f)) - elif ext in IMAGE_EXTENSIONS: + elif ext == "gif": + tag_field_names.album = "XMP:Album" + tag_field_names.albumartist = "XMP:Author" + tag_field_names.artist = "Artist" + tag_field_names.producer = "XMP:Producer" + tag_field_names.title = "Title" + meta = ExiftoolMetadata.new(f) + elif ext in [ "jpg", "jpeg", "png" ]: tag_field_names.album = "XPSubject" tag_field_names.artist = "Photographer" tag_field_names.albumartist = "Artist"