View Issue Details

IDProjectCategoryView StatusLast Update
0004200FreeCADBugpublic2019-11-29 13:52
Reporterteo8976 Assigned To 
PrioritynoneSeverityminorReproducibilityalways
Status closedResolutionduplicate 
Product Version0.15 
Summary0004200: Import from SVG gets wrong scale
DescriptionThe attached SVG file has :

<svg width="210mm" height="297mm" viewBox="0 0 210 297" xmlns="http://www.w3.org/2000/svg">

Hence, there is enough information to get an exact real size in mm for everything.

The document is 210 by 297 mm and the viewbox is 210 by 297, so each unit in the SVG corresponds to exactly 1mm.

When importing this file, I expect those sizes to be honored.
Steps To Reproduce- File -> Open
- open the attached file
- pick the measure tool
- measure the topmost horizontal line
Additional InformationThat line should measure 190 mm

It measures 188.862 mm. Not close enough.
TagsNo tags attached.
FreeCAD InformationOS: Ubuntu 16.04.6 LTS
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.15.4671 (Git)
Branch: releases/FreeCAD-0-15
Hash: 244b3aef360841646cbfe80a1b225c8b39c8380c
Python version: 2.7.11
Qt version: 4.8.7
Coin version: 4.0.0a
OCC version: 6.8.0.oce-0.17

Relationships

duplicate of 0003420 assignedyorik SVG imports from inkscape lead to wrong dimensions 

Activities

teo8976

2019-11-22 11:27

reporter  

1_08mm_plakene_DINA4.svg (1,449 bytes)   
1_08mm_plakene_DINA4.svg (1,449 bytes)   

openBrain

2019-11-22 16:39

developer   ~0013827

@teo8976 : as you may have miss the huge yellow banner on top of the page :
  • Post only 0.18-0.19 bugs => your version is ... 0.15
  • Search forum+bugtracker for existing entries => your ticket is a pure duplicate of 0003420
  • Post to the forum first => this is minimal requirement. However in this case, better participate to the forum discussion linked in the pointed ticket
Sorry but this ticket will be closed without further processing due to above reasons.

Related Changesets

FreeCAD: master 0a8c73f3

2019-11-24 14:03:07

0penBrain


Committer: wwmayer Details Diff
Fix bad 'pt' unit definition

'pt' unit has been defined as 1.25 px while it is 4/3 px (0000009:0000001.33 px).
Relates to issue 0004200
Relates to Syres916@3db7496 (despite bug always existed, even before this commit)
Source : https://oreillymedia.github.io/Using_SVG/guide/units.html
Affected Issues
0004200
mod - src/Mod/Draft/importSVG.py Diff File

Issue History

Date Modified Username Field Change
2019-11-22 11:27 teo8976 New Issue
2019-11-22 11:27 teo8976 File Added: 1_08mm_plakene_DINA4.svg
2019-11-22 16:39 openBrain Note Added: 0013827
2019-11-22 16:39 openBrain Relationship added duplicate of 0003420
2019-11-22 16:40 openBrain Priority immediate => none
2019-11-22 16:40 openBrain Severity major => minor
2019-11-22 16:40 openBrain Status new => closed
2019-11-22 16:40 openBrain Resolution open => duplicate
2019-11-22 16:40 openBrain Description Updated
2019-11-22 16:40 openBrain Steps to Reproduce Updated
2019-11-22 16:40 openBrain Additional Information Updated
2019-11-22 16:40 openBrain FreeCAD Information OS: Ubuntu 16.04.6 LTS Word size of OS: 64-bit Word size of FreeCAD: 64-bit Version: 0.15.4671 (Git) Branch: releases/FreeCAD-0-15 Hash: 244b3aef360841646cbfe80a1b225c8b39c8380c Python version: 2.7.11 Qt version: 4.8.7 Coin version: 4.0.0a OCC version:... => OS: Ubuntu 16.04.6 LTS Word size of OS: 64-bit Word size of FreeCAD: 64-bit Version: 0.15.4671 (Git) Branch: releases/FreeCAD-0-15 Hash: 244b3aef360841646cbfe80a1b225c8b39c8380c Python version: 2.7.11 Qt version: 4.8.7 Coin version: 4.0.0a OCC...
2019-11-29 13:52 Changeset attached => FreeCAD master 0a8c73f3