convert -extract example [SOLVED]

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
ZiTAL

convert -extract example [SOLVED]

Post by ZiTAL »

Hi, I'm trying to extract a part of image, i'm trying with this command:

Code: Select all

convert -extract 112x122+77+77 input.jpg output.jpg
to extract 112x122 rectangle in x 77 and y 77 position, but the image generated is the same as original.

I'm looking examples in internet but i don't find anything.

Thanks for all.
Last edited by ZiTAL on 2008-01-09T04:14:32-07:00, edited 1 time in total.
Bonzo
Posts: 2971
Joined: 2006-05-20T08:08:19-07:00
Location: Cambridge, England

Re: convert -extract example

Post by Bonzo »

Try:

Code: Select all

convert input.jpg -crop 112x122+77+77 output.jpg
ZiTAL

Re: convert -extract example

Post by ZiTAL »

It works, thanks ;)
Post Reply