# HG changeset patch # User František Kučera # Date 1543695869 -3600 # Node ID 1b5bf1029a9c04b2c6442a70aa52e6a9fabfb5a1 # Parent 7a8b6340046ead7d1000e5366d8531fe74a66ce1 scripts/image-coment.sh adds image metadata: copyright and comment in EXIF diff -r 7a8b6340046e -r 1b5bf1029a9c scripts/image-coment.sh --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/scripts/image-coment.sh Sat Dec 01 21:24:29 2018 +0100 @@ -0,0 +1,8 @@ +#!/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";