[magick-users] Crop away from whitespace - Long shot I know!
Glenn Randers-Pehrson
glennrp at comcast.net
Tue May 7 15:21:13 PDT 2002
Brian Beaumont wrote:
> Hi There,
>
> This is a long shot I know, but is there a way to use PerlMagick to
> strip away white space from an image? This is for a dating site; some
> people seem to want to upload small pictures on a HUGE canvas. And once
> they're resized into thumbnails, they look horrid; the person I'm working
> with is spending a lot of time manually cropping and re-uploading them.
Via the comandline,
convert -trim
formerly (still works) convert -crop 0x0
Either will remove edges that are entirely the same color as the
corner pixels.
If PerlMagick doesn't have "trim" you should be able to use crop
with the 0x0 geometry. Sorry, don't have docs handy right now.
You can get them from http://imagemagick.sf.net/docs/
Glenn
More information about the Magick-users
mailing list