After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 631885 - GIMP fails to import a path from SVG
GIMP fails to import a path from SVG
Status: RESOLVED FIXED
Product: GIMP
Classification: Other
Component: General
2.6.10
Other All
: Normal normal
: 2.6
Assigned To: GIMP Bugs
GIMP Bugs
: 668915 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2010-10-11 14:29 UTC by Daniel Trebbien
Modified: 2012-01-28 19:20 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
The SVG that I attempted to import (1.97 KB, application/xml)
2010-10-11 14:30 UTC, Daniel Trebbien
Details
Screenshot of Inkscape 0.48 editing `test.svg` (93.02 KB, image/png)
2010-10-11 14:33 UTC, Daniel Trebbien
Details
Screenshot of GIMP 2.6.11 showing the rasterization of `test.svg` and the imported path (64.95 KB, image/png)
2010-10-11 14:34 UTC, Daniel Trebbien
Details

Description Daniel Trebbien 2010-10-11 14:29:45 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.
Comment 1 Daniel Trebbien 2010-10-11 14:30:58 UTC
Created attachment 172097 [details]
The SVG that I attempted to import
Comment 2 Daniel Trebbien 2010-10-11 14:33:08 UTC
Created attachment 172098 [details]
Screenshot of Inkscape 0.48 editing `test.svg`
Comment 3 Daniel Trebbien 2010-10-11 14:34:32 UTC
Created attachment 172099 [details]
Screenshot of GIMP 2.6.11 showing the rasterization of `test.svg` and the imported path
Comment 4 Sven Neumann 2010-10-12 21:16:32 UTC
Confirmed on trunk.
Comment 5 Sven Neumann 2010-10-13 20:08:12 UTC
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.
Comment 6 Martin Nordholts 2010-10-14 05:56:34 UTC
(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 ;)
Comment 7 Michael Natterer 2012-01-28 19:20:30 UTC
*** Bug 668915 has been marked as a duplicate of this bug. ***