View Issue Details

IDProjectCategoryView StatusLast Update
0003420FreeCADBugpublic2018-12-05 13:10
ReporterherrdehAssigned Toyorik 
PrioritynormalSeveritymajorReproducibilityalways
Status assignedResolutionopen 
PlatformallOSallOS Versionall
Product Version0.17 
Target Version0.19Fixed in Version 
Summary0003420: SVG imports from inkscape lead to wrong dimensions
DescriptionWith the change from 0.91 to 0.92 inkscape devs changed the conversion factor of userunit (uu) and mm. Pre-0.92 it was 1uu=1 inch/90 and starting from 0.92 it is 1 uu=1inch/96. This was necessary to meet the actual recommendations/rules of svg-standard and css. See [url=http://wiki.inkscape.org/wiki/index.php/Units_In_Inkscape]this article[/url] in inkscapewiki for further reading.

When a user creates a file in inkscape with absolute dimensions (mm) and saves it, then imports it into FC, bodies in Freecad come out with too large dimensions. For example - a 100mm square will be 106,66mm in FC now (100 x 96/90).

[url=https://forum.freecadweb.org/viewtopic.php?f=13&t=27344]In this discussion in the German forum[/url] folks who can read German can follow the process of isotating the bug.
Steps To ReproduceImport a SVG file from inkscape >=0.92 - check measures.
Tagsimport, Inkscape, SVG

Activities

yorik

2018-04-03 15:38

administrator   ~0011114

Would it be possible to provide two very simle test files that would allow to check the results?

herrdeh

2018-04-04 08:12

reporter  

Viereck-100x200-Rand0,1-inkscape092.svg (1,663 bytes)
Viereck-100x200-Rand0,1-inkscape048.svg (1,846 bytes)

herrdeh

2018-04-04 08:14

reporter   ~0011120

Here are inkscape test files. Unluckily, none of my FC versions are capable of SVG import at the moment, so I cannot provide FC test files. But importing both of these examples should lead to different squares, allthough both of them are 100x200mm in inkscape.

yorik

2018-04-04 14:07

administrator   ~0011121

Thanks! I'll have a look at this after the release is out.

Issue History

Date Modified Username Field Change
2018-04-03 13:03 herrdeh New Issue
2018-04-03 13:03 herrdeh Tag Attached: import
2018-04-03 13:03 herrdeh Tag Attached: Inkscape
2018-04-03 13:03 herrdeh Tag Attached: SVG
2018-04-03 15:38 yorik Note Added: 0011114
2018-04-03 15:39 yorik Assigned To => yorik
2018-04-03 15:39 yorik Status new => assigned
2018-04-03 15:39 yorik Status assigned => feedback
2018-04-04 08:12 herrdeh File Added: Viereck-100x200-Rand0,1-inkscape092.svg
2018-04-04 08:12 herrdeh File Added: Viereck-100x200-Rand0,1-inkscape048.svg
2018-04-04 08:14 herrdeh Note Added: 0011120
2018-04-04 08:14 herrdeh Status feedback => assigned
2018-04-04 14:07 yorik Note Added: 0011121
2018-08-23 17:37 Kunda1 Target Version => 0.18
2018-12-05 13:10 yorik Target Version 0.18 => 0.19