Use current date and time as filename
Posted: 2016-07-22T13:26:28-07:00
Is there a simple way to set the output file name as the current date and time?
Windows 10 x64
ImageMagick 7.0.2-Q16
My current setup is fairly simple. Input a folder of pictures, crop them down, then save.
What I'd like to do is name the output files with the date and time the photo was taken, so it looks something like:
image_20160722-2215.jpg
So I'd like to use the YYYYMMDD-HHMM format with 24-hour time.
Any help would be greatly appreciated. Thanks!
Windows 10 x64
ImageMagick 7.0.2-Q16
My current setup is fairly simple. Input a folder of pictures, crop them down, then save.
Code: Select all
magick *.jpg -crop 1280x1024+640+448 image.jpg
image_20160722-2215.jpg
So I'd like to use the YYYYMMDD-HHMM format with 24-hour time.
Any help would be greatly appreciated. Thanks!