diff --git a/lib/src/converter/mod.rs b/lib/src/converter/mod.rs index c940b56..1340f2d 100644 --- a/lib/src/converter/mod.rs +++ b/lib/src/converter/mod.rs @@ -402,10 +402,10 @@ fn length_to_mm(l: svgtypes::Length, dpi: f64, scale: Option) -> f64 { In => Length::new::(l.number), Pc => Length::new::(l.number) / dpi_scaling, Pt => Length::new::(l.number) / dpi_scaling, - Px => Length::new::(l.number / dpi_scaling), + Px => Length::new::(l.number / dpi), Em => { warn!("Converting from em to millimeters assumes 1em = 16px"); - Length::new::(16. * l.number / dpi_scaling) + Length::new::(16. * l.number / dpi) } Percent => { if let Some(scale) = scale {