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."
(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! ;-)