trim option not working

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
Selva

trim option not working

Post by Selva »

I have used image magic for epstogif convertion. The comments is below
1. convert eps filename gif filename.
2 mogrify -trim giffilename modgiffilename.

The Second option -trim is not working properly in few systems(WindowsXP). Please advise me.
User avatar
anthony
Posts: 8883
Joined: 2004-05-31T19:27:03-07:00
Authentication code: 8675308
Location: Brisbane, Australia

Re: trim option not working

Post by anthony »

More than likely the colors along the edges are not all EXACTLY the same color!

Try added -fuzz 5% and see if that makes a difference!

Trimming with fuzzy color selection -- Low Quality JPEG Images
http://www.imagemagick.org/Usage/crop/#trim_fuzz

Also see Trimming 'Noisy' Images
http://www.imagemagick.org/Usage/crop/#trim_blur
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
Post Reply