0
1
Greetings and Salutations All,
I'm trying to create an animation using imagemagick via:
convert -delay 80 -loop 0 *.png ani.gif
The logic is finding all the .png files, except the file names are not listed numerically. This causes the animation sequence to be poorly built.
e.g
-a--- 3/17/2015 8:36 PM 14147 26.png
-a--- 3/17/2015 8:37 PM 13904 260.png
-a--- 3/17/2015 8:37 PM 13981 261.png
-a--- 3/17/2015 8:37 PM 13863 262.png
-a--- 3/17/2015 8:37 PM 14026 263.png
-a--- 3/17/2015 8:37 PM 14023 264.png
-a--- 3/17/2015 8:37 PM 14038 265.png
-a--- 3/17/2015 8:37 PM 13913 266.png
-a--- 3/17/2015 8:37 PM 14003 267.png
-a--- 3/17/2015 8:37 PM 14000 268.png
-a--- 3/17/2015 8:37 PM 13887 269.png
-a--- 3/17/2015 8:36 PM 14025 27.png
I've tried to force the directory to a list by time & date to no avail via:
set dircmd=/o:d
How could I get it so that the files would be internally listed as:
-a--- 3/17/2015 8:36 PM 14147 26.png
-a--- 3/17/2015 8:36 PM 14025 27.png
-a--- 3/17/2015 8:37 PM 13904 260.png
-a--- 3/17/2015 8:37 PM 13981 261.png
-a--- 3/17/2015 8:37 PM 13863 262.png
-a--- 3/17/2015 8:37 PM 14026 263.png
-a--- 3/17/2015 8:37 PM 14023 264.png
-a--- 3/17/2015 8:37 PM 14038 265.png
-a--- 3/17/2015 8:37 PM 13913 266.png
-a--- 3/17/2015 8:37 PM 14003 267.png
-a--- 3/17/2015 8:37 PM 14000 268.png
-a--- 3/17/2015 8:37 PM 13887 269.png
Then when the convert command is run the right sequence would be pressed into a gif?
or using PowerShell:
dir *.png | foreach {Move $_.Name $_.Name.PadLeft(10,'0')}
– Peter Hahndorf – 2015-03-18T17:29:54.820