author | František Kučera <franta-hg@frantovo.cz> |
Fri, 11 Jan 2019 23:08:47 +0100 | |
branch | v_0 |
changeset 234 | 2fc56dd7f003 |
parent 193 | a58a620b2ee4 |
permissions | -rwxr-xr-x |
171
1b5bf1029a9c
scripts/image-coment.sh adds image metadata: copyright and comment in EXIF
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
1 |
#!/bin/bash |
1b5bf1029a9c
scripts/image-coment.sh adds image metadata: copyright and comment in EXIF
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
2 |
|
1b5bf1029a9c
scripts/image-coment.sh adds image metadata: copyright and comment in EXIF
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
3 |
FILE="$1"; |
1b5bf1029a9c
scripts/image-coment.sh adds image metadata: copyright and comment in EXIF
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
4 |
COMMENT="$2"; |
1b5bf1029a9c
scripts/image-coment.sh adds image metadata: copyright and comment in EXIF
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
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 |
1b5bf1029a9c
scripts/image-coment.sh adds image metadata: copyright and comment in EXIF
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
6 |
|
1b5bf1029a9c
scripts/image-coment.sh adds image metadata: copyright and comment in EXIF
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
7 |
[ -n "$FILE" ] && exiv2 -M "set Exif.Image.Copyright $COPYRIGHT" "$FILE"; |
1b5bf1029a9c
scripts/image-coment.sh adds image metadata: copyright and comment in EXIF
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
8 |
[ -n "$COMMENT" ] && exiv2 -M "set Exif.Photo.UserComment charset=Unicode $COMMENT" "$FILE"; |