[SOLVED] SVG files goes smaller opened in Xara

Post questions on how to use or achieve an effect in Inkscape.
User avatar
Ponny
Posts: 101
Joined: Wed Oct 10, 2007 3:02 am
Location: Mystic kingdom of Krakovo

[SOLVED] SVG files goes smaller opened in Xara

Postby Ponny » Fri Aug 05, 2016 2:15 am

Meow

I found a strange thing with InkScape and page size.
If I open SVG file in Xara, then page size is Custom and width is 19,69cm. But original file is A4 with width 21cm.
And all objects opened in Xara is changed in this ratio as width. This is from 21cm to 19,69cm.
If anybody knows, is this problem living in InkScape, or in Xara?

Thankyou in advance


Ponny
Last edited by Ponny on Sun Jan 29, 2017 5:17 am, edited 1 time in total.
Did you see the indigo Pony, when he came from other side wall of the night?

User avatar
Ponny
Posts: 101
Joined: Wed Oct 10, 2007 3:02 am
Location: Mystic kingdom of Krakovo

Re: SVG files goes smaller opened in Xara

Postby Ponny » Fri Aug 05, 2016 7:29 pm

I made another test. If I export file from XAR (Xara Page & Graphic Designer 11) - to (plain) SVG, and then open it in InkScape (0.48.5), the page setting is stil A4 (29,7 x 21 cm) and all dimensions are still the same as in Xara. Not smaller, not bigger.


Ponny
Did you see the indigo Pony, when he came from other side wall of the night?

hulf2012
Posts: 716
Joined: Sat Nov 24, 2012 12:37 pm

Re: SVG files goes smaller opened in Xara

Postby hulf2012 » Sat Aug 06, 2016 1:57 am

Hello

If you could post the SVGs involved (imported, exported).
- The SVG before importing to XARA
- The SVG after imported to XARA and then imported again to SVG (without editing)

-Only guessing: It could be related to the viewport attribute, or width, height attributes of the main SVG tag.
- Or maybe one Inkscape's layer had a transform attribute.
- Or something else (did you see in launchpad)?
If you have problems:
1.- Post a sample (or samples) of your file please.
2.- Please check here:
http://tavmjong.free.fr/INKSCAPE/MANUAL/html/index.html
3.- If you manage to solve your problem, please post here your solution.

User avatar
Ponny
Posts: 101
Joined: Wed Oct 10, 2007 3:02 am
Location: Mystic kingdom of Krakovo

Re: SVG files goes smaller opened in Xara

Postby Ponny » Sat Aug 06, 2016 5:49 am

I put here 2 files.
"Test 2 plain.svg" made in inkscape and then saved as plain SVG.
"Test 3 from xara plain.svg" is test 1 imported to Xara, then saved in XAR and then exported to plain SVG.
Fertig.

Ponny
Attachments
Test 2 plain.svg
(1.46 KiB) Downloaded 198 times
Test 3 from xara plain.svg
(1.15 KiB) Downloaded 198 times
Did you see the indigo Pony, when he came from other side wall of the night?

hulf2012
Posts: 716
Joined: Sat Nov 24, 2012 12:37 pm

Re: SVG files goes smaller opened in Xara

Postby hulf2012 » Sat Aug 06, 2016 7:53 am

Thank you for sharing the files
Xara produces an SVG code which has many differences compared to Inkscape.

Anyway. Checking the attributes of the SVG element in both files

Xara generated:

Code: Select all

<svg stroke-width="0.501" stroke-linejoin="bevel" fill-rule="evenodd" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/2000/svg" version="1.1" overflow="visible" width="595.277pt" height="841.891pt" viewBox="0 0 595.277 841.891">


Inkscape generated:

Code: Select all

<svg
   xmlns:dc="http://purl.org/dc/elements/1.1/"
   xmlns:cc="http://creativecommons.org/ns#"
   xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
   xmlns:svg="http://www.w3.org/2000/svg"
   xmlns="http://www.w3.org/2000/svg"
   version="1.1"
   width="744.09448"
   height="1052.3622"
   id="svg2993">


Xara adds a viewport attribute and transform all the units from pixels to pt. When opened the Xara generated SVG and converting the units from pt to pixels, the size in pixels equals the Inkscape generated version
My opinion: It's better to work in one unit system. Configure Xara to import and work in pixels
Other option you can use is in Inkscape save as optimized SVG, which allows more setups when exporting
If you have problems:
1.- Post a sample (or samples) of your file please.
2.- Please check here:
http://tavmjong.free.fr/INKSCAPE/MANUAL/html/index.html
3.- If you manage to solve your problem, please post here your solution.


Return to “Help with using Inkscape”