gm incorrectly renders this SVG (xmonad's logo): http://xmonad.org/images/logo.svg
It draws red line in the bottom, while there should be white background (this is how it's rendered by other software: http://xmonad.org/images/logo.png\)
Roman Cheplyaka <roma@ro-che.info>
Logged In: YES
user_id=128624
Originator: NO
I notice that recent ImageMagick produces the same result as GraphicsMagick. The SVG renderer is pretty weak by today's standards but does usually successfully render such simple graphics.
Problem SVG file
PNG file showing expected result
The bug is that GraphicsMagick is not properly respecting move-to requests ('M') in a path specification. It should treat each move-to request as a request to close the current drawing path and start a new drawing path at the new starting location. This is a problem with the MVG renderer. ImageMagick's built-in SVG reader still has the same bug.
This problem has been fixed by the following change set:
changeset: 15585:b5ca60b382d6
tag: tip
user: Greg Wolfe gregory.wolfe@kodakalaris.com
date: Fri Apr 20 09:48:34 2018 -0400
summary: SVG: Process paths containing multiple subpaths correctly.
Details: When a path contained multiple subpaths, only the first one was being handled correctly. For subsequent subpath starts, a test intended to eliminate duplicate points was incorrectly comparing the first point in the new subpath to the last point in the previous subpath. This sometimes caused the first point in the new subpath to be discarded.
Thanks for the example SVG file. It was of great help in finding this bug.