Page 1 of 1

Complex Image Output Sequence Filename

Posted: 2011-03-09T08:43:50-07:00
by tonyrocks
HI,

I'm converting Multiple page PDFs to individual GIF files. I'm using this syntax:

convert $destfile.pdf $destfile%02d.gif

which yields:
filename00.gif
filename01.gif
....
filename010.gif.

The problem is that I'm trying to make it out put like this:

filename001.gif
filename002.gif
....
filename010.gif
filename011.gif
....

I would like the image filename sequence to start at 1, not 0, and have 3 number places. I thought this would work: convert $destfile.pdf $destfile%03d.gif, but for one it doesn't let me start at 1.

Any ideas?

Re: Complex Image Output Sequence Filename

Posted: 2011-03-09T08:45:43-07:00
by magick
Add -scene 1 to your command line (just before the output filename).

Re: Complex Image Output Sequence Filename

Posted: 2011-03-09T19:43:35-07:00
by anthony
See IM examples, Writing Multiple Images, Starting (Scene) Number
http://www.imagemagick.org/Usage/files/#scene