Skip to content

Instantly share code, notes, and snippets.

@tomo3141592653
Created January 25, 2016 02:38
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 tomo3141592653/e319b872a2c0aaa872d0 to your computer and use it in GitHub Desktop.
Save tomo3141592653/e319b872a2c0aaa872d0 to your computer and use it in GitHub Desktop.
# usage:
# install exiftool from http://www.sno.phy.queensu.ca/~phil/exiftool/
# 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
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment