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?".
I want to first cut a image vertical into multiple pieces of the same size. So I have a 800x5000px image for example and want to have 800x1200px images (the last image should be only the rest 800x200px image + white background)
How can I set, that it only takes 3 images and after these 3, create a new image with the next 3 images?
Is there also a way to combine these two scripts? Like first cut 3 pieces (starting at the bottom), then combine them vertically, then cut an other 3 and combine them etc.
This should flip all image back again and number them from the original bottom. The last section at the top of the image may be a partial size. The input image needs to come before the crop:
fmw42 wrote:This should flip all image back again and number them from the original bottom. The last section at the top of the image may be a partial size. The input image needs to come before the crop:
If you have many pieces than you need to use leading zeros in your file names. If you have numbers from 0 to 999, then use %03d. If you have numbers from 0 to 9999, then use %04d. But I am not sure why you should be getting 1,2,3,...13... when you start the numbering from 134?
That should number them from 134 - XXX, but you really do not need the %03d vs %d, since your numbers should be in the range 134 to XXX (unless you have more than 999 pieces and then you would need %04d at least)