Crop Zoom Resize

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
KandisZZ
Posts: 21
Joined: 2011-02-13T05:47:57-07:00
Authentication code: 8675308

Crop Zoom Resize

Post by KandisZZ »

Hello IM Forum!
My name is Paul. Im new with IM, and i´ve got a problem with a automatic crop zoom sequence.


TARGET:
I want to crop and zoom pictures with parameters. Then -flatten.

PROBLEM:
The crop and the resize command with the parameters wont work as expected.
The croped result is always left sided for example...

MY TRIES:
Reading the Examples of ImageMagick Usage Carefully.
Searching the Forum for the same Problem. Found viewtopic.php?f=1&t=17663&p=66806#p66806
Tried //convert logo: -gravity center -crop 90x90+0+0 +repage -resize "120x90^" -gravity center -crop 120x90+0+0 +repage logo_tst1.png


This Parameters are known and its a example of what i want:
Image

Thx for Ideas! :)

paul
Bonzo
Posts: 2971
Joined: 2006-05-20T08:08:19-07:00
Location: Cambridge, England

Re: Crop Zoom Resize

Post by Bonzo »

Take things in logical small steps - get the first crop sorted then do the next crop on seperate commands then join them together when they are both working as you want. You may need to use ( ) in your command if you want it all in one command line.

-crop 90x90+0+0 is the crop image is 90px x 90px and offset 0px x 0px Depending where your gravity is set you may need to use negative numbers.

If you only want the head part why are you cropping twice?

This will just give you the highlighted part:

Code: Select all

convert bqy0xflmqbh5efk81.jpg -gravity north -crop 90x110+0+10 +repage logo_tst1.png
KandisZZ
Posts: 21
Joined: 2011-02-13T05:47:57-07:00
Authentication code: 8675308

Re: Crop Zoom Resize

Post by KandisZZ »

Thx for this.
Im going to tweak it for myself.
That helped me thx Bonzo!

paul
Post Reply