diff -r d5feb9d8ebc3 -r 6aeed29d3a6e scripts/image-comment.sh --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/scripts/image-comment.sh Mon Dec 25 14:08:19 2023 +0100 @@ -0,0 +1,8 @@ +#!/bin/bash + +FILE="$1"; +COMMENT="$2"; +COPYRIGHT="Graphics utilities (c) $(date +%Y) Frantisek Kucera, Frantovo.cz, GlobalCode.info; copylefted under the GNU FDLv1.3+ license"; # this tag should be in ASCII, see http://www.exiv2.org/tags.html + +[ -n "$FILE" ] && exiv2 -M "set Exif.Image.Copyright $COPYRIGHT" "$FILE"; +[ -n "$COMMENT" ] && exiv2 -M "set Exif.Photo.UserComment charset=Unicode $COMMENT" "$FILE";