scripts/image-coment.sh
branchv_0
changeset 193 a58a620b2ee4
parent 192 dbd10bb73ce0
child 194 cd5524d03739
equal deleted inserted replaced
192:dbd10bb73ce0 193:a58a620b2ee4
     1 #!/bin/bash
       
     2 
       
     3 FILE="$1";
       
     4 COMMENT="$2";
       
     5 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
       
     6 
       
     7 [ -n "$FILE"    ] && exiv2 -M "set Exif.Image.Copyright $COPYRIGHT" "$FILE";
       
     8 [ -n "$COMMENT" ] && exiv2 -M "set Exif.Photo.UserComment charset=Unicode $COMMENT" "$FILE";