"Mads N. Vestergaard" on  wrote...
| Hi There,
| 
| I'm trying to figure out how to remove the alpha cchannel on a PNG
| image.
| 
| The image has a transparant background, but thet could be replaced by
| the color white.
| 
| I have search the forums, and mail archives, but couldn't find a
| simular question.
| 
| I have tried to play around with the matte option, but I guess my lack
| of knowledge regarding image manipulation, is stopping me, could you
| please give me a hint.
| 
| Thanks in advance.
| 
The simplest way is to -flatten the image onto a specific background
color.  After it is flattens a +matte can be used to remove the alpha
channel.

   convert image.png  -background white -flatten +matte   image_new.png

See IM Examples
   http://www.cit.gu.edu.au/~anthony/graphics/imagick6/mosaics/#flatten

This section also gives an alturnative using -border taht will do this
to a whole sequence of images, while kepping them seperate.

  Anthony Thyssen ( System Programmer )    <[EMAIL PROTECTED]>
 -----------------------------------------------------------------------------
  UNIX is the spawn of the devil,
       why he even has his deamons running the thing!    -- Anthony Thyssen
 -----------------------------------------------------------------------------
     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