Formatting character starting from 1

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
altos
Posts: 2
Joined: 2016-06-13T06:57:48-07:00
Authentication code: 1151

Formatting character starting from 1

Post by altos »

Hello,

Code: Select all

convert *.jpg image-%d.jpg
Will produce something like:

Code: Select all

image-0.jpg
image-1.jpg
image-2.jpg
But I would like to start from 1, is possible?

Code: Select all

image-1.jpg
image-2.jpg
image-3.jpg
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: Formatting character starting from 1

Post by magick »

Try this command:
  • convert -scene 1 *.jpg image-%d.jpg
altos
Posts: 2
Joined: 2016-06-13T06:57:48-07:00
Authentication code: 1151

Re: Formatting character starting from 1

Post by altos »

That's it.

Thanks.
Post Reply