A simple script that renames a group of files to their file's creation date. Handy for retaining the date you took a photo (for example), and makes them easy to sort.
Ex) "IMG_1234.jpg" -> "2016-01-28 20.17.50.jpg"
- Install the latest LTS version of NodeJS from https://nodejs.org/en/
- If using a terminal to run it, run
npm install
- Put all your photos that you want to rename in the "in" folder. They will be copied into the "out" folder with their new names.
- A couple options for running the script:
- On Windows: right-click run.ps1 and select "Run with PowerShell"
- On Windows/Mac: open up a terminal, and run
grunt
.- You can optional add an "offset" param to change the time in milliseconds. Ex)
grunt --offset="3600000"
(adds an hour onto each photo)
- You can optional add an "offset" param to change the time in milliseconds. Ex)
- All your renamed files should now be in the "out" folder.
Note: they are just copies.