Created
July 29, 2016 15:21
-
-
Save lopezpdvn/eb9d4c7f1a088b1c4461bab9246c2b01 to your computer and use it in GitHub Desktop.
Exiftool metadata write script
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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