Single image - Multiple crop and join

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
agriz
Posts: 237
Joined: 2011-10-01T02:21:30-07:00
Authentication code: 8675308

Single image - Multiple crop and join

Post 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?
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: Single image - Multiple crop and join

Post 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.
snibgo's IM pages: im.snibgo.com
agriz
Posts: 237
Joined: 2011-10-01T02:21:30-07:00
Authentication code: 8675308

Re: Single image - Multiple crop and join

Post by agriz »

Thank you sir, I will try layers merge and let you know.
agriz
Posts: 237
Joined: 2011-10-01T02:21:30-07:00
Authentication code: 8675308

Re: Single image - Multiple crop and join

Post by agriz »

Code: Select all

convert image.jpg -crop 540x720+0+0 +gravity +repage -crop 200x200 +repage -layers merge output.jpg
Image
Image
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: Single image - Multiple crop and join

Post by snibgo »

Is there a question? You used "+repage", which removes the canvas data.
snibgo's IM pages: im.snibgo.com
Post Reply