Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
# usage:
# install exiftool from
# set folder name as yyyymmdd(ex.20060801)
# and type
# ls | ruby exif_edit.rb
while gets
folder = $_.chomp
date = folder[0..3] +":"+ folder[4..5] + ":" + folder[6..7] + " 12:0:0"
`exiftool -alldates=\'#{date}\' -overwrite_original #{folder}/*.JPG`
p folder
p date
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment