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
[SOLVED] SVG files goes smaller opened in Xara
[SOLVED] SVG files goes smaller opened in Xara
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?
Re: SVG files goes smaller opened in Xara
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
Ponny
Did you see the indigo Pony, when he came from other side wall of the night?
Re: SVG files goes smaller opened in Xara
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 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.
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.
Re: SVG files goes smaller opened in Xara
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
"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?
Re: SVG files goes smaller opened in Xara
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:
Inkscape generated:
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
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.
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.