In 1.5 svgrasterizer, when outputting PNG images, transparent PNGs are created only for 24-bit PNGs.For cases where size of output image is a concern, it would be nice if transparent images were created for indexed (8-, 4-, 2-, 1- bit) PNGs as well. I believe Thomas DeWeese is the person who wrote PNG encoding code.
Reassigning all open bugs to the development list. Sorry for the mass mailing.
The problem is that the call to org.apache.batik.ext.awt.image.rendered.IndexImage.getIndexedImage (BufferedImage,nColors) returns an indexed image without transparency. The method ignores the alpha channel during calculation of indexed colors. I think this isn't an enhancement - this is a bug.