Skip to content

Instantly share code, notes, and snippets.

@lopezpdvn
Created July 29, 2016 15:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lopezpdvn/eb9d4c7f1a088b1c4461bab9246c2b01 to your computer and use it in GitHub Desktop.
Save lopezpdvn/eb9d4c7f1a088b1c4461bab9246c2b01 to your computer and use it in GitHub Desktop.
Exiftool metadata write script
src=src_img.png
dst=dst_img.png
imgdate="2016-02-04T15:03:34-05"
cp -av $src $dst
exiftool -u -a -All= $dst
exiftool -use MWG \
-Copyright="Image by Pedro Ivan Lopez. All rights to the respective authors." \
-DateTimeOriginal=$imgdate \
-Description="Description of the image
Good place to give credit to the images/pictures used providing URLS: http://somesite.whereoriginal.imagefound.org
Another credit: http://wehavecoolimages.com
More description
" \
-CollectionURI+='http://pedroivanlopez.com/pathtoimage-img.png' \
-Creator+='Pedro Ivan Lopez' \
-Keywords+='awesome' -Keywords+='meme' -Keywords+='funny' -Keywords+='software' \
-CollectionName+="Short name of the image" \
-CollectionName+="A longer name of the image" \
-CreateDate=$imgdate \
-ModifyDate=$imgdate \
$dst
exiftool -use MWG -u -a $dst
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment