branch | v_0 |
changeset 137 | 6aeed29d3a6e |
136:d5feb9d8ebc3 | 137:6aeed29d3a6e |
---|---|
1 #!/bin/bash |
|
2 |
|
3 FILE="$1"; |
|
4 COMMENT="$2"; |
|
5 COPYRIGHT="Graphics utilities (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"; |