Trim, Crop, Something

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
User avatar
anthony
Posts: 8883
Joined: 2004-05-31T19:27:03-07:00
Authentication code: 8675308
Location: Brisbane, Australia

Post by anthony »

First -crop 0x0 is for IM v5 only, it has a different meaning for IM 6.
The -trim operator is what you want, but as your image is scaned it will fail as not all the green is exactly the same 'green' color.

You will need to use a -fuzz setting to relax the color comparision testing IM is using.

For more see...
http://www.cit.gu.edu.au/~anthony/graph ... #trim_fuzz
and the next section.
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
Post Reply