File name default numbering sequence

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
sweerasinghe
Posts: 2
Joined: 2012-07-27T09:35:48-07:00
Authentication code: 15

File name default numbering sequence

Post by sweerasinghe »

Hi,

I am using the command:

Code: Select all

convert -quality 50  IN.pdf %d.png
So this creates a set of images
0.png, 1.png, 2.png, 3.png…
Is there a way to change the default numbering sequence to start from 1 instead of 0.
Tried this command too, but no progress

Code: Select all

convert -quality 50  IN.pdf [%d+1].png 
I prefer not to have all the images rename.

Thanks in advance!
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: File name default numbering sequence

Post by fmw42 »

Your syntax should probably be revised for IM 6, though it may not matter.

try

convert IN.pdf -scene 1 -quality 50 %d.png

see
http://www.imagemagick.org/Usage/basics/#why
http://www.imagemagick.org/script/comma ... .php#scene
sweerasinghe
Posts: 2
Joined: 2012-07-27T09:35:48-07:00
Authentication code: 15

Re: File name default numbering sequence

Post by sweerasinghe »

Thanks a lot! -scene does what I was looking for. Also thank you for pointing the IM 6 syntaxes too. :)
Post Reply