
12 Jan
2011
12 Jan
'11
1:57 p.m.
On 11-01-12 02:10 AM, Susan Spencer wrote:
Here is how I use Inkscape to achieve precise measurements.
The following conversions are global definitions at the top of my Python scripts:
*# measurement constants in_to_px = ( 90 / 1 ) #convert inches to pixels - 90px/in cm_to_in = ( 1 / 2.5 ) #convert centimeters to inches -
Conversion is not the problem. The problem is that the number of pixels per inch keeps changing. It's currently 90, schedule to change to 96, and may change again. That means that old SVGs will become 7% smaller when the new scale is implemented. And that's *all* the old ones since Inkscape stores their measurements as pixels.
BTW, it's 2.54 cm per inch. :)
--
Just my 0.00000002 million dollars worth,
Shawn
Confusion is the first step of understanding.
Programming is as much about organization and communication
as it is about coding.
The secret to great software: Fail early & often.
Eliminate software piracy: use only FLOSS.