in reply to Cropping dependant on image contents

I'm sure there's some PerlMagic Image::Magick do-dad that will do that. The trick is just getting through the mostly opaque documentation.

-- Randal L. Schwartz, Perl hacker
Be sure to read my standard disclaimer if this is a reply.

  • Comment on Re: Cropping dependant on image contents

Replies are listed 'Best First'.
Re^2: Cropping dependant on image contents
by davidrw (Prior) on May 11, 2005 at 02:14 UTC
    I've used Image::Magick's Trim() method with success before. (though I definitely agree that the PerlMagick docs are not the best).

    My only caveat in using the Trim() method is that my use was when i started with a blank canvas and put stuff in the middle somewhere and wanted it auto-cropped down. In your (OP) case, you may need to tell it what to consider as the background color before calling Trim().