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 )    <[EMAIL PROTECTED]>
 -----------------------------------------------------------------------------
   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/
_______________________________________________
Magick-users mailing list
[email protected]
http://studio.imagemagick.org/mailman/listinfo/magick-users

Reply via email to