file naming help.

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
alexcordero9
Posts: 7
Joined: 2013-01-16T15:59:04-07:00
Authentication code: 6789

file naming help.

Post 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
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: file naming help.

Post 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
Post Reply