Inkscape SVG uncompatible with Corel X5

Bug #717883 reported by Alexey Shokarev
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Inkscape
Invalid
Undecided
Unassigned

Bug Description

I create Inkscape SVG file in Inkscape 0.48.0 r9654 and save it. After that I open the file in Corel and graphics corrupted. This happens when saving a file as plain SVG too. Windows 7 Ultimate x64 Russian.

Tags: saving svg
Revision history for this message
Alexey Shokarev (alexey-shokarev) wrote :
Revision history for this message
Alexey Shokarev (alexey-shokarev) wrote :
Revision history for this message
su_v (suv-lp) wrote :

Could you please attach the SVG used for the screenshots?

Possibly the same issue as with several other SVG renderers which do not support the optimized path data (valid SVG) Inkscape uses since 0.47 [1].

Could you please test the following:
1) open 'Inkscape Preferences > SVG Output'
2) change the settings for Path data to:
   [ ] Allow relative coordinates
   [x] Force repeat commands
3) open the SVG file in question and force a rewrite of the path data:
   - select all (in all Layers)
   - move the selection with the cursor keys up and back down again
4) save file, and open/import in Corel Draw

[1] <http://wiki.inkscape.org/wiki/index.php/Release_notes/0.47#Optimized_path_data>

tags: added: saving svg
Revision history for this message
Alexey Shokarev (alexey-shokarev) wrote :

In attachment Inkscape SVG file with this problem.

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

Please test attached SVG file in Corel Draw (no optimized path data as described in my previous comment)

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

Please test attached SVG file in Corel Draw (no explicit transforms on (layer) groups)

Revision history for this message
Alexey Shokarev (alexey-shokarev) wrote :

Could you please test the following:
1) open 'Inkscape Preferences > SVG Output'
2) change the settings for Path data to:
   [ ] Allow relative coordinates
   [x] Force repeat commands
3) open the SVG file in question and force a rewrite of the path data:
   - select all (in all Layers)
   - move the selection with the cursor keys up and back down again
4) save file, and open/import in Corel Draw

SVG in Corel X5 after test in attachment

Revision history for this message
Alexey Shokarev (alexey-shokarev) wrote :

717883-Acril_6mm-no-optimized-path-data-1 - the same result, better, but not good

Revision history for this message
Alexey Shokarev (alexey-shokarev) wrote :

717883-Acril_6mm-no-explicit-transforms-1 - very bad

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

> 717883-Acril_6mm-no-optimized-path-data-1 - the same result, better,
> but not good

The misrendered object is a rectangle inside a transformed (moved) group - you could test these additional variations:
a) 'Ctrl+-click to select the rectangle within the groutp and convert the shape to path ('Path > Object to Path')
b) ungroup the group and leave the rectangle as is (basic SVG shape)

It seems that Corel Draw doesn't support several valid features of the current SVG 1.1 specification. IMHO this is not a bug in Inkscape, but could be reported with Corel Draw (to improve the support of SVG 1.1). Other SVG renderers (Squiggle (Batik 1.7), librsvg 2.32.1, and web browsers like Firefox 3.6, Opera 11, Chrome and Safari) render the original file correctly.

Revision history for this message
Alexey Shokarev (alexey-shokarev) wrote :

After convert problematic rectangle to curve this object converted correct.
But circle convert uncorrect even after converting to curve.

Revision history for this message
Alexey Shokarev (alexey-shokarev) wrote :

Result in Corel X5

Revision history for this message
Alexey Shokarev (alexey-shokarev) wrote :

All circles converted uncorrect

Revision history for this message
Alexey Shokarev (alexey-shokarev) wrote :

The misrendered object is a rectangle inside a transformed (moved) group - you could test these additional variations:
a) 'Ctrl+-click to select the rectangle within the groutp and convert the shape to path ('Path > Object to Path')
b) ungroup the group and leave the rectangle as is (basic SVG shape)

a) I ungroup transformed group, convert rectangle to path and then group it.
b) no result - this option I check first

Revision history for this message
Alexey Shokarev (alexey-shokarev) wrote :

I recolve problem.
I convert all circles and rectangle to path, after this SVG render in CorelDRAW X5 correct.
So to resolve this problem I need convert all not simple figures to path (not simple - contained inside other figures) and all simple figures inside not simple figure.
After all this convertions, SVG render correct in CorelDRAW X5.

Revision history for this message
Alexey Shokarev (alexey-shokarev) wrote :
Revision history for this message
Alexey Shokarev (alexey-shokarev) wrote :

In other SVG I have problem with use group in other group.
So to correct open SVG in CorelDRAW X5 you can not use more than one level of grouping.

Revision history for this message
Alexey Shokarev (alexey-shokarev) wrote :

Found another problem when opening files Inkscape SVG in CorelDRAW X3. If the file contains a group, then when you try to ungroup it into CorelDRAW X3, it hangs. Thus, when transferring files from Inkscape group can not be used.

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

> Thus, when transferring files from Inkscape group can not be used.

I don't understand why Corel Draw's limited support of apparently basic SVG features would be a bug in Inkscape.

Have you tried to save the SVG document as 'Optimized SVG', which has various options provided by the 'Scour' script [1]?

<quote>
Optimisations performed by Scour on SVG files include: removing empty elements, removing metadata elements, removing unused id= attribute values, removing unrenderable elements, trimming coordinates to a certain number of significant places, and removing vector editor metadata.
</quote>

[1] <http://www.codedread.com/scour/>
    <http://www.codedread.com/scour/ops.php>
    <https://launchpad.net/scour>

Revision history for this message
Alexey Shokarev (alexey-shokarev) wrote :

Another problem - when you open the SVG files in CorelDRAW is changing the image scale. The length of the rectangle 950 mm in Inkscape becomes 890.36 mm in CorelDRAW. This is also due to the limited support for the program CorelDRAW format SVG?

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

> when you open the SVG files in CorelDRAW is changing the image scale

Inkscape uses 90 dpi internally (hard-coded, based on the initial recommendation in SVG 1.1). Corel Draw seems to assume a different resolution (96dpi?) - Scribus OTOH imports SVG based on 72 dpi. Basically this touches a general deficiency in the current SVG specification that it doesn't easily allow to specify absolute units (as page size or for object dimensions) that have to be rendered with equal absolute length in different SVG renderers.

Recent related discussion in inkscape-devel:
<http://thread.gmane.org/gmane.comp.graphics.inkscape.devel/35733>

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

Closing - limited support for SVG 1.1 in CorelDraw is not an Inkscape bug (and most of the encountered limitations can be worked around with changed preferences in Inkscape).

Changed in inkscape:
status: New → Invalid
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.