On Thu, 30 Apr 2009 20:23:47 -0600 Bob Meetin <[email protected]> wrote:
| I have a series of .gif images with transparency which when uploaded to | a shopping cart, the utility converts the transparency to black. | | How can I use convert, what syntax, to swap the black for either | transparency or white? I can set up a PHP script to run through the list. | | -Bob | _______________________________________________ | Magick-users mailing list | [email protected] | http://studio.imagemagick.org/mailman/listinfo/magick-users Just use -background white -alpha shape to make black transparent and -negate -background black -alpha shape to make white transparent This will make grays semi-transparent, and thus ensure the image remains properly anti-aliased for non GIF image formats. See http://www.imagemagick.org/Usage/basics/#alpha_shape for other colors use +level-colors http://www.imagemagick.org/Usage/color/#level-colors Anthony Thyssen ( System Programmer ) <[email protected]> ----------------------------------------------------------------------------- Experience is what you get when you were expecting something else. ----------------------------------------------------------------------------- Anthony's Home is his Castle http://www.cit.gu.edu.au/~anthony/ _______________________________________________ Magick-users mailing list [email protected] http://studio.imagemagick.org/mailman/listinfo/magick-users
