scripts/image-comment.sh
author František Kučera <franta-hg@frantovo.cz>
Sun, 13 Jan 2019 20:38:20 +0100
branchv_0
changeset 235 04e922dd748c
parent 193 a58a620b2ee4
permissions -rwxr-xr-x
screenshots: Haiku OS: v0.8 instead of an early prototype - regular build using cmake is possible on Haiku - even relpipe-in-xml runs (xerces) - but relpipe-in-filesystem does not (requires GCC 8 and currently only 7 is in Haiku)

#!/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";