Page 1 of 1

Posted: 2006-11-06T11:48:16-07:00
by magick
Recent versions of ImageMagick account for the alpha channel when trimming. Perhaps you are using an older version of ImageMagick or perhaps you need to increase the fuzziness (e.g. -fuzz 40%).

Posted: 2006-11-07T09:42:53-07:00
by magick
Chances are your image does not have a uniform background color which stops the trimming from working as you had hoped. You might be able to eliminate some noise with a median filter first and see if that makes a difference.

Posted: 2006-11-07T15:08:21-07:00
by RetroJ
ggambett wrote: The alpha channel is correctly empty in the left zone. The color channels do have color data in some of the transparent areas, as shown with -separate.

There are a few pixels in column 0 whose alpha value differs, as you can see with:

Code: Select all

convert upgrade_sound06.png -crop 1x600 txt: | less
You can overcome this by doing:

Code: Select all

convert upgrade_sound06.png -fuzz 1% -trim +repage out.png