scripts/image-comment.sh
author František Kučera <franta-hg@frantovo.cz>
Sat, 06 Jun 2020 13:22:57 +0200
branchv_0
changeset 300 b9bd0f06b4a1
parent 193 a58a620b2ee4
permissions -rwxr-xr-x
MySQL seems to works well even with libmyodbc5a.so not only libmyodbc5w.so ODBC driver

#!/bin/bash

FILE="$1";
COMMENT="$2";
COPYRIGHT="Relational pipes (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";