Bug 43950 - -indexed option not shown in help on parameter list
Summary: -indexed option not shown in help on parameter list
Status: RESOLVED FIXED
Alias: None
Product: Batik - Now in Jira
Classification: Unclassified
Component: SVG Rasterizer (show other bugs)
Version: 1.8
Hardware: Other other
: P2 normal
Target Milestone: ---
Assignee: Batik Developer's Mailing list
URL: http://xmlgraphics.apache.org/batik/t...
Keywords:
Depends on:
Blocks:
 
Reported: 2007-11-23 07:33 UTC by Rob Davis
Modified: 2010-10-04 18:43 UTC (History)
0 users



Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Rob Davis 2007-11-23 07:33:05 UTC
 
Comment 1 Rob Davis 2007-11-23 07:37:16 UTC
In batik-rasterizer command line help and on the web at:
http://xmlgraphics.apache.org/batik/tools/rasterizer.html

The option -indexed is NOT shown.

This option enables bits per pixel to be defined for the resulting bitmap
generated by the rasterizer from the svg.

This is useful if anti-aliasing is not wanted or required for the resulting
bitmap output image. Using an index of 1 is monochrome and therefore will
disable anti-aliasing.

See also post "How to turn anti-alias off when using rasterizer" below:

http://mail-archives.apache.org/mod_mbox/xmlgraphics-batik-users/200312.mbox/%3C20031202000548.95964.qmail@web13505.mail.yahoo.com%3E

I found that setting the rasterizer "-indexed" parameter to 1
effectively turns off anti-aliasing as it forces there to be only 2^1=2
colors in the result PNG image:

   java -jar batik-rasterizer.jar -indexed 1 

The indexed parameter is not listed on the rasterizer web docs:
  http://xml.apache.org/batik/svgrasterizer.html#using

But it is listed when running the rasterizer at the command line:
  "-indexed (1|2|4|8)
        Reduces the image to given number of bits per pixel using an
        adaptive pallete, resulting in an Indexed image.  This is
        currently only supported for PNG conversion."
Comment 2 Helder Magalhães 2010-10-04 18:43:07 UTC
(In reply to comment #1)
> In batik-rasterizer command line help and on the web at:
> http://xmlgraphics.apache.org/batik/tools/rasterizer.html
> 
> The option -indexed is NOT shown.

Not only this one but also few other options were missing.

Fixed in revision 1004465. Thanks for the report! ;-)