[magick-users] How to specify transparent color in palletized PNG image?

Jonnie Walker killer8 at gmx.de
Sun May 17 07:41:50 PDT 2009


Hi ImageMagick users,

I was wondering on how to specify a transparent color for a PNG image that uses a palette. The options "transparent" and "transparent-color" do not work. They either create an alpha mask or nothing happens at all.

In the basic usage description the following is documented: 
"Transparency in such images are usually handled either by specifying a specific color as representing transparency (set using the "-transparent-color" meta-data setting) as in GIF format, or using a special profile for a specific number of colors in the color table in a PNG8 image. However only a single color transparency is implemented in IM bit image formats at this time."
So I assume that it is possible to specify at least one transparency color.

Thank you in advance for your help.

-- 
Neu: GMX FreeDSL Komplettanschluss mit DSL 6.000 Flatrate + Telefonanschluss für nur 17,95 Euro/mtl.!* http://dslspecial.gmx.de/freedsl-surfflat/?ac=OM.AD.PD003K11308T4569a


More information about the Magick-users mailing list