[magick-users] trouble with -transparent-color
Anthony Thyssen
anthony at griffith.edu.au
Wed Mar 12 21:03:35 PDT 2008
Fred Weinhaus on wrote...
| >Thank you to everyone for their kind assistance. :-)
| >
| >I have a PNG, there are parts of it which are transparent. I want to
| >basically fill that part with a specified color, however,
| >
| >convert input_file.png -transparent-color #000000 output_file.png
| >
| >does not work, and the out_put.png file looks the same, with the
| >transparent parts unaffected. How can this be done? :)
|
| convert input_file.png -fill "whatevercoloryouwant" -opaque none
| output_file.png
|
Warning the above fails for images with semi-transparent pixel edges!!!!
Better to -flatten the image, to handle semi-transparent pixels
correctly.
Anthony Thyssen ( System Programmer ) <A.Thyssen at griffith.edu.au>
-----------------------------------------------------------------------------
Look, you don't have to believe everything you hear about werewolves.
We're human, just like everyone else. Most of the time.
-- Terry Pratchett - "Men At Arms"
-----------------------------------------------------------------------------
Anthony's Home is his Castle http://www.cit.gu.edu.au/~anthony/
More information about the Magick-users
mailing list