Page 1 of 1

Single image - Multiple crop and join

Posted: 2016-07-05T03:20:58-07:00
by agriz

Code: Select all

convert image.jpg -crop 540x720+0+0 +gravity +repage -crop 200x200 +repage output__%d.gif
(usage -> Rose crop coding)

How do i join the cropped images in the same command?

Re: Single image - Multiple crop and join

Posted: 2016-07-05T03:40:56-07:00
by snibgo
What do you mean by "join"? You can append the images, if you want. "-layers merge" will put the cropped images back where they came from, provided you still have the canvas data.

Re: Single image - Multiple crop and join

Posted: 2016-07-05T03:48:08-07:00
by agriz
Thank you sir, I will try layers merge and let you know.

Re: Single image - Multiple crop and join

Posted: 2016-07-05T08:07:24-07:00
by agriz

Code: Select all

convert image.jpg -crop 540x720+0+0 +gravity +repage -crop 200x200 +repage -layers merge output.jpg
Image
Image

Re: Single image - Multiple crop and join

Posted: 2016-07-05T10:54:51-07:00
by snibgo
Is there a question? You used "+repage", which removes the canvas data.