have prefix in output file name
Posted: 2009-04-28T22:28:00-07:00
I tried to convert a number of files like this:
convert -size 660x580 -depth 8 "C:\path...\*.jpg" "C:\path...\%d.png"
path... is the path to the file location.
For example, there's 2 file, 1.jpg and 2.jpg,
after conversion, the file would be named d-1.png and d-2.png.
Why is "d-" added to the file name? How do i remove or prevent it?
Thanks.
*additional info: this problem only happen when the command is in a windows batch file. If i type in the command manually into command prompt, i could get 1.png and 2.png as the output file name.
convert -size 660x580 -depth 8 "C:\path...\*.jpg" "C:\path...\%d.png"
path... is the path to the file location.
For example, there's 2 file, 1.jpg and 2.jpg,
after conversion, the file would be named d-1.png and d-2.png.
Why is "d-" added to the file name? How do i remove or prevent it?
Thanks.
*additional info: this problem only happen when the command is in a windows batch file. If i type in the command manually into command prompt, i could get 1.png and 2.png as the output file name.