![](https://secure.gravatar.com/avatar/84524eb6e916f5d548e7c7c0e41fd127.jpg?s=120&d=mm&r=g)
On Mon, 2014-04-28 at 16:16 +0200, TimeWaster wrote:
hi,
i just played around with the px/in conversion factor in the units.xml file and one thing came apparent: when you change this factor, you are not changing the px/in "unit", in reality you change the size of a pixel (since the size of inch is defined by the outside world), which affects ALL units.
internally all sizes are calculated with the intermediate step of converting into pixels. an example, converting mm to in:
100mm * 3.543307px/mm / 90px/in = 3.937007in (correct)
if i now just change the px/in definition to 96, i get:
100mm * 3.543307px/mm / 96px/in = 3,690944in (INcorrect and verified by changing the unit from mm to in on a 100mm cube in inkscape)
this means i also have to redefine px/mm to 3.779527:
100mm * 3.779527px/mm / 90px/in = 3.937007in (correct)
so if we redefine all the units and thus changing the "size" of a pixel, all conversions work as expected, just px will have a slightly different "viewing size" i think.
You are correct.
one question: what is the "default export resolution in preferences"?
The initial value is defined in terms of It's actually defined in terms of share/ui/units.xml
Tav