strange conversion between mm and internal px

General discussions about Inkscape.
wb

strange conversion between mm and internal px

Postby wb » Sun Jan 16, 2011 1:54 am

Hey,

not sure if anyone who can answer this reads here, but I stumbled across some strange conversion behaviour.
I created a box and this is the result for different sizes:
x mm in gui = y internal px in the svg file
10mm = 35,433071
100mm = 354,33072
1000mm = 3543,3071
10000mm = 35433,07
100000mm = 354330,72

The reason I had a look at this is because I want to add something to the svg externally by some scripts, but now I'm not sure how to convert my mm scaled things correctly to the px in the svg file...since the difference is very small it's no big deal, but numbers are numbers and 10*x should be 10*a*y if x=a*y

User avatar
prokoudine
Posts: 186
Joined: Sat Jun 09, 2007 4:32 am
Contact:

Re: strange conversion between mm and internal px

Postby prokoudine » Mon Jan 17, 2011 6:11 am

This is a known issue, it's currently being discussed again in the devel mailing list. The fix doesn't seem to be trivial.
http://libregraphicsworld.org — news and tutorials on free design software

wb

Re: strange conversion between mm and internal px

Postby wb » Wed Jan 19, 2011 6:00 pm

ok thanks, inkscape accepts mm in the svg so i let inkscape handle the conversion...


Return to “General Discussions”