scripts/image-comment.sh
author František Kučera <franta-hg@frantovo.cz>
Thu, 24 Oct 2019 21:52:34 +0200
branchv_0
changeset 139 0246f4b2c827
parent 137 8e583c8df660
permissions -rwxr-xr-x
fix license version: GNU GPLv3
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
136
025ec3d898c4 mouse.globalcode.info – website skeleton
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
     1
#!/bin/bash
025ec3d898c4 mouse.globalcode.info – website skeleton
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
     2
025ec3d898c4 mouse.globalcode.info – website skeleton
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
     3
FILE="$1";
025ec3d898c4 mouse.globalcode.info – website skeleton
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
     4
COMMENT="$2";
137
8e583c8df660 cadMousePro, Spacenav Demo, Spacenav Simulator, Spacenav Hack
František Kučera <franta-hg@frantovo.cz>
parents: 136
diff changeset
     5
COPYRIGHT="Mouse utilities (c) $(date +%Y) Frantisek Kucera, Frantovo.cz, GlobalCode.info; copylefted under the GNU FDLv1.3+ license; source: https://mouse.globalcode.info/"; # this tag should be in ASCII, see http://www.exiv2.org/tags.html
136
025ec3d898c4 mouse.globalcode.info – website skeleton
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
     6
025ec3d898c4 mouse.globalcode.info – website skeleton
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
     7
[ -n "$FILE"    ] && exiv2 -M "set Exif.Image.Copyright $COPYRIGHT" "$FILE";
025ec3d898c4 mouse.globalcode.info – website skeleton
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
     8
[ -n "$COMMENT" ] && exiv2 -M "set Exif.Photo.UserComment charset=Unicode $COMMENT" "$FILE";