GNOME Bugzilla – Bug 631885
GIMP fails to import a path from SVG
Last modified: 2012-01-28 19:20:30 UTC
I created a simple SVG in Inkscape 0.48 and attempted to import it into GIMP versions 2.6.10 and 2.6.11. Both versions succeed in rasterizing the SVG, but fail to correctly import the sole path in the SVG.
Created attachment 172097 [details] The SVG that I attempted to import
Created attachment 172098 [details] Screenshot of Inkscape 0.48 editing `test.svg`
Created attachment 172099 [details] Screenshot of GIMP 2.6.11 showing the rasterization of `test.svg` and the imported path
Confirmed on trunk.
Fixed in trunk and merged to the stable branch: commit beef765b4f4d0174f6886964b147f315b2f9b499 Author: Sven Neumann <sven@gimp.org> Date: Wed Oct 13 22:01:58 2010 +0200 Bug 631885 - GIMP fails to import a path from SVG If a moveto is followed by multiple pairs of coordinates, the subsequent pairs are supposed to be treated as implicit lineto commands. The parser used to ignore this part of the SVG specification and treated subsequent pairs of coordinates as moveto commands (which is correct in general, but for moveto commands there is this explicit exception of the general rule). I would very much appreciate if someone tested this change more thoroughly to make sure that it doesn't break other SVG files.
(In reply to comment #5) > I would very much appreciate if someone tested this change more thoroughly to > make sure that it doesn't break other SVG files. And I would very much appreciate if someone wrote automatic regression tests instead so no one would have to manually tests for regressions each fix ;)
*** Bug 668915 has been marked as a duplicate of this bug. ***