This commit is contained in:
commit
d239ecd627
1 changed files with 26 additions and 0 deletions
26
image.initmeta.sh
Normal file
26
image.initmeta.sh
Normal file
|
@ -0,0 +1,26 @@
|
|||
#!/bin/bash
|
||||
|
||||
if [ -z "$1" ]; then
|
||||
echo "Use: image.initmeta PHOTO"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
year="$(exiftool -s -EXIF:DateTimeOriginal "$1" | awk '{print $3}' | cut -d":" -f1)"
|
||||
artist="Peter Molnar"
|
||||
rights="CC BY-NC-ND 4.0 ${year} ${artist} <mail@petermolnar.net>"
|
||||
url="https://petermolnar.net/"
|
||||
email="mail@petermolnar.net"
|
||||
licenseurl="https://spdx.org/licenses/CC-BY-NC-ND-4.0.html"
|
||||
|
||||
exiftool\
|
||||
-EXIF:Artist="${artist}"\
|
||||
-EXIF:Copyright="${rights}"\
|
||||
-IPTC:By-line="${artist}"\
|
||||
-IPTC:CopyrightNotice="${rights}"\
|
||||
-XMP:CopyrightOwnerID="${url}"\
|
||||
-XMP:CopyrightOwnerName="${artist}"\
|
||||
-XMP:Creator="${artist}"\
|
||||
-XMP:Rights="${rights}"\
|
||||
-xmp-plus:Licensor="{LicensorID=${url},LicensorName=${artist},LicensorURL=${url},LicensorEmail=${email}}"\
|
||||
-xmp-xmpRights:WebStatement="${licenseurl}"\
|
||||
"$1"
|
Loading…
Reference in a new issue