user3310334
user3310334

Reputation:

imagemagick crop image 1-indexed

I want to crop a 960x1080px image into 6 480x360px chunks.

This worked:

convert backdrop1.jpg -crop 480x360 backdrop1tile%d.jpg

But the image naming (%d) starts at zero.

How can I make the first "tile" be called 'backdrop1tile1.jpg' (and the last 'backdrop1tile6.jpg'), how do I get it to start at 1?

Upvotes: 0

Views: 39

Answers (1)

mystique
mystique

Reputation: 517

Try this, it should work

convert backdrop1.jpg -crop 480x360 -scene 1 backdrop1tile%d.jpg

Upvotes: 1

Related Questions