Skip to content

Instantly share code, notes, and snippets.

@shenqi
Created March 8, 2012 17:37
Show Gist options
  • Save shenqi/2002269 to your computer and use it in GitHub Desktop.
Save shenqi/2002269 to your computer and use it in GitHub Desktop.
Change Exif Info for films scanned
function exif_film_lx(){
foreach _file ($@)
echo 'Processing '${_file}
local _date
_date="$(exiftool -s3 -IPTC:DateCreated ${_file}) 00:00:00"
exiftool -q -overwrite_original -Make='Pentax' -Model='LX' -XMP-photoshop:DateCreated=${_date} -
IPTC:TimeCreated='00:00:00+00:00' -Exif:DateTimeOriginal=${_date} ${_file}
end
growlnotify -s -a /Applications/iTerm.app "iTerm" -m "Finished rewriting tags"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment