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
change to IM line
-
- Posts: 12159
- Joined: 2010-01-23T23:01:33-07:00
- Authentication code: 1151
- Location: England, UK
Re: change to IM line
Probably "-gravity Center" instead of "-gravity South".
snibgo's IM pages: im.snibgo.com
Re: change to IM line
and the -chop 0x60 will be the same? thanks
-
- Posts: 12159
- Joined: 2010-01-23T23:01:33-07:00
- Authentication code: 1151
- Location: England, UK
Re: change to IM line
snibgo's IM pages: im.snibgo.com
Re: change to IM line
I have read all the article but I have no idea about this and how I can put in practice.
- fmw42
- Posts: 25562
- Joined: 2007-07-02T17:14:51-07:00
- Authentication code: 1152
- Location: Sunnyvale, California, USA
Re: change to IM line
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