convert pdf (over 11 pages) to jpg -> outputfile numbering

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
paschi.baehler
Posts: 1
Joined: 2012-11-13T07:47:37-07:00
Authentication code: 6789

convert pdf (over 11 pages) to jpg -> outputfile numbering

Post by paschi.baehler »

If I convert a PDF with more then 11 pages, the outputfiles generated are like the following:

convert input.pdf output.jpg

output-0.jpg
output-1.jpg
output-2.jpg
..
output-10.jpg

How can I add a leading "0" by the first 10 pages in the Outputfile. I like to have the output like this:

output-00.jpg
output-01.jpg
output-02.jpg
..
output-10.jpg

And is it possible to start with output-01.jpg instead of output-01.jpg?

Thanks for the help!
User avatar
glennrp
Posts: 1147
Joined: 2006-04-01T08:16:32-07:00
Location: Maryland 39.26.30N 76.16.01W

Re: convert pdf (over 11 pages) to jpg -> outputfile numberi

Post by glennrp »

Code: Select all

convert input.pdf output-%02d.jpg
User avatar
whugemann
Posts: 289
Joined: 2011-03-28T07:11:31-07:00
Authentication code: 8675308
Location: Münster, Germany 52°N,7.6°E

Re: convert pdf (over 11 pages) to jpg -> outputfile numberi

Post by whugemann »

And is it possible to start with output-01.jpg instead of output-01.jpg?
Add the option
-scene 1
to the command line.
Wolfgang Hugemann
Post Reply