Created
January 25, 2016 02:38
-
-
Save tomo3141592653/e319b872a2c0aaa872d0 to your computer and use it in GitHub Desktop.
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
# 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