View Single Post
qole's Avatar
Moderator | Posts: 7,109 | Thanked: 8,820 times | Joined on Oct 2007 @ Vancouver, BC, Canada
#13
All of the "convert" options can be found here.

Using GraphicsMagick to crop an image, you can either use "crop" or "shave". Use crop if you want to specify the size of the cropped image, or use shave if you want to specify the amount to remove from the edges.

So, if you want to take an 800x600 wallpaper and make an 800x480 version of it by just cropping the centre of the image, do this:

Code:
gm convert original-wallpaper.jpg -gravity Center -crop 800x480+0+0 cropped-wallpaper.jpg
__________________
qole.org --- twitter --- Easy Debian wiki page
Please don't send me a private message, post to the appropriate thread.
Thank you all for your donations!

Last edited by qole; 2009-02-03 at 21:53. Reason: fixed to work (removed +repage)