export garbles image part with gradient

Bug #406627 reported by Christian Rishøj
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Inkscape
Confirmed
Low
Unassigned

Bug Description

I have an SVG diagram that I wish to convert to EPS or PDF on the command line. In all cases, one element in the SVG file shows up garbled in the exported output.

I am using the latest build (Inkscape-21714-10.5-i386.dmg) on Mac OS X Leopard. Latest XQuartz installed.

The command lines I am using are:

/Applications/Inkscape.app/Contents/Resources/bin/inkscape -D Experiment_Setup.svg --export-eps=output.eps

/Applications/Inkscape.app/Contents/Resources/bin/inkscape -C Experiment_Setup.svg --export-eps=output.eps

/Applications/Inkscape.app/Contents/Resources/bin/inkscape -C Experiment_Setup.svg --export-pdf=output.pdf

The problem also occurs in a plain SVG export:

/Applications/Inkscape.app/Contents/Resources/bin/inkscape -C Experiment_Setup.svg --export-plain-svg=output.svg

Please find the SVG causing the problem attached.

Revision history for this message
Christian Rishøj (christian-rishoj) wrote :
Revision history for this message
Christian Rishøj (christian-rishoj) wrote :
Revision history for this message
su_v (suv-lp) wrote :

With Inkscape 0.46+devel r21924, built Jul 29 2009, OS X 10.5.7: if I save the ai-generated(?) svg file first within Inkscape (gui version), all cl-exports produce correct results.

start tag of original 'Experiment_Setup.svg':

<svg xmlns:x="http://ns.adobe.com/Extensibility/1.0/" xmlns:i="http://ns.adobe.com/AdobeIllustrator/10.0/" xmlns:graph="http://ns.adobe.com/Graphs/1.0/" xmlns:a="http://ns.adobe.com/AdobeSVGViewerExtensions/3.0/" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="861" height="598">

Revision history for this message
jazzynico (jazzynico) wrote :

Not reproduced on Windows XP, Inkscape rev.21933.

Revision history for this message
Christian Rishøj (christian-rishoj) wrote :

Right, saving from within Inkscape (GUI), I get correct results.

But when called form the command line, the export is garbled.

You should be able to reproduce this.

Revision history for this message
su_v (suv-lp) wrote :

to be more precise: my steps to reproduce

1) download 'Example_Setup.svg'
2) export via CLI of 'Example_Setup.svg' fails with missing/wrong gradient of the upper left object

and

1) download 'Example_Setup.svg'
2) open with Inkscape (GUI), save as 'Example_Setup-local.svg', quit Inkscape (GUI)
3) export via CLI of 'Example_Setup-local.svg' works without visible errors.

Revision history for this message
su_v (suv-lp) wrote :

s/left/right/

Revision history for this message
jazzynico (jazzynico) wrote :

All I can see (by opening the file with inkscape r21933 or exporting it to PDF via CLI) is a missing background for the top right object (and not a black background). With 0.46, the CLI fails but I see no problem with Inkscape GUI.

In the SVG code, this polygon is linked to a linearGradient with id="g23". If you change the link (with an external text editor) and use style="fill:url(#g21)", it seems to work well (g21 is exactly the same linearGradient as g23!) and the gradient is correctly exported to PDF via CLI.

Strangely, if you open the file in Inkscape r21933 and use XML editor, the id of linearGradient g23 is changed to "linearGradient482" (doesn't occur with 0.46).

Changed in inkscape:
importance: Undecided → Low
status: New → Confirmed
tags: added: exporting pdf
tags: added: import-export svg
removed: exporting pdf
Revision history for this message
Christian Rishøj (christian-rishoj) wrote :

Exactly. Thanks for confirming the issue.

Revision history for this message
Christian Rishøj (christian-rishoj) wrote :

Update:

The upper right object also appears garbled when viewed in the Inkscape GUI.

Please compare the attached screendump to that of viewing the same SVG in Safari, in which the object is shown correctly.

Revision history for this message
Christian Rishøj (christian-rishoj) wrote :
jazzynico (jazzynico)
tags: added: gradient
su_v (suv-lp)
tags: added: cli exporting
removed: import-export
Revision history for this message
Beluga (buovjaga) wrote :

No garbling seen in Inkscape gui now.

Arch Linux 64-bit, KDE Plasma 5
Inkscape 0.92pre1 15073 (GTK3)

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.