Hi, I'm new to Batik, but I found what seems to be a bug in: org/apache/batik/ext/awt/image/codec/PNGImageEncoder.java
The encoder throws an exception if the image color channels have different bit-depths. This is probably a good sanity-check in most cases, but 16-bit RGB color modes usually have 5,6,5 bits respectively. (although 5,5,5 is not unheard of either) Also, if not a power of 2, the bit depths are rounded up to the closest power of 2, but the bits are not left-shifted accordingly. mailto:[EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]