Page 1 of 1

change to IM line

Posted: 2016-06-09T04:24:23-07:00
by R3nato
Hello there, I have the line:

$imagick_command = "-gravity south -chop 0x60 -modulate 110,102,100 -sharpen 1x1 -enhance"; //command line for imagemagick

At this moment I chop from bottom 60, I want to do the chop also from top of the images. Please let me know what changes i have to make. Thanks

Re: change to IM line

Posted: 2016-06-09T07:37:33-07:00
by snibgo
Probably "-gravity Center" instead of "-gravity South".

Re: change to IM line

Posted: 2016-06-09T07:59:23-07:00
by R3nato
and the -chop 0x60 will be the same? thanks

Re: change to IM line

Posted: 2016-06-09T08:31:19-07:00
by snibgo

Re: change to IM line

Posted: 2016-06-09T08:40:39-07:00
by R3nato
I have read all the article but I have no idea about this and how I can put in practice.

Re: change to IM line

Posted: 2016-06-09T09:52:44-07:00
by fmw42
To chop from the top and bottom the same amount, use -shave. To chop from the top use -gravity north and to chop from the bottom use -gravity south. See http://www.imagemagick.org/Usage/crop/#shave and http://www.imagemagick.org/Usage/crop/#chop