Affects Version/s: 1.7
Fix Version/s: None
Component/s: SVG Rasterizer
Environment:Operating System: Linux
Just as the title says, sometimes when rasterising an SVG file at small sizes, the bottom row of the raster image appears completely transparent.
Let's take for example the following file:
<svg xmlns="http://www.w3.org/2000/svg" height="10" width="19">
<rect width="19" height="10" fill="lime"/>
Obviously, this image is fully green (ff0000), and so should be any rasterisation of this image. However, when rasterising it with Batik at a width of 22px (rasterizer -w 22 -m image/png file.svg), all pizels on the bottom row of the resulting PNG file are completely transparent.
Needless to say, this behaviour makes it difficult to align images properly or put a border around one, as MediaWiki does.