Page 1 of 1

file naming help.

Posted: 2013-01-22T02:35:10-07:00
by alexcordero9
I'm doing a simple conversion from PDF to JPG but I've run into a file naming problem and I'd like some input.

This is what I'm running:

Code: Select all

c:\convert *.pdf *.jpg
I'd like each conversion to retain its file name but instead I get converted files with a "-01" suffix or something similar. IM seems to take the longest file name and simply repeats it in its converted form.

Has anyone seen this?

Thanks.

ac

Re: file naming help.

Posted: 2013-01-22T13:13:22-07:00
by fmw42
I do not think you can do wildcards the way you are trying

To do what you want, you probably should use mogrify not convert. see
http://www.imagemagick.org/Usage/basics/#mogrify