You are viewing a plain text version of this content. The canonical link for it is here.
Posted to batik-dev@xmlgraphics.apache.org by bu...@apache.org on 2009/03/27 18:28:58 UTC

DO NOT REPLY [Bug 43847] PNG export: indexed option doesn't work

https://issues.apache.org/bugzilla/show_bug.cgi?id=43847


Helder Magalhães <he...@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
  Attachment #21117|0                           |1
        is obsolete|                            |




--- Comment #6 from Helder Magalhães <he...@gmail.com>  2009-03-27 10:28:56 PST ---
Created an attachment (id=23423)
 --> (https://issues.apache.org/bugzilla/attachment.cgi?id=23423)
Patch v2

(In reply to comment #0)
> 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've (also) confirmed this in the source code
(org.apache.batik.transcoder.image.PNGTranscoder.WriteAdapter#writeImage). The
attachment is very similar to the current one, but additionally fixes a few
indenting issues and removes some weird "By Jun Inamori" statements (which
apparently shouldn't be there) and also some extraneous line breaks.


> 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.

I haven't tried to improve this behavior...

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: batik-dev-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: batik-dev-help@xmlgraphics.apache.org