Thanks! Works like a charm. And because it's so painful to always insert that attribute by hand, this is now an option at tools.wmflabs.org/convert/ - which is using rsvg, though. Source code (PHP, using DOMDocument and XPath) is, of course, available.
According to https://www.w3.org/TR/SVG11/painting.html#ShapeRenderingProperty "user agent might turn off anti-aliasing for all lines and curves or possibly just for straight lines which are close to vertical or horizontal". So unfortunately, I fear it is not a bullet-proof way to get rid of anti-aliasing.
> shape-rendering ="crispEdges"
Thanks! Works like a charm. And because it's so painful to always insert that attribute by hand, this is now an option at tools.wmflabs. org/convert/ - which is using rsvg, though. Source code (PHP, using DOMDocument and XPath) is, of course, available.
According to https:/ /www.w3. org/TR/ SVG11/painting. html#ShapeRende ringProperty "user agent might turn off anti-aliasing for all lines and curves or possibly just for straight lines which are close to vertical or horizontal". So unfortunately, I fear it is not a bullet-proof way to get rid of anti-aliasing.