-
Type:
Bug
-
Status: Resolved
-
Resolution: Fixed
-
Affects Version/s: 1.8
-
Fix Version/s: None
-
Component/s: SVG Viewer
-
Labels:
-
Environment:Operating System: All
Platform: All
The indexed option of the PNG export in the SVG viewer has no effect.
This is because KEY_INDEXED is set to 256 while it seems to be expected
to be 8 if the number of palette entries should be 256 = 2^8.
A value of 256 will be ignored in
sources/org/apache/batik/ext/awt/image/codec/png/PNGTranscoderInternalCodecWriteAdapter.java
I'll post a simple patch, but the indexed option is still quite unusable
because it dithers a white background, even if only one other color is used.