shibukawa / imagesize_py

MIT License
222 stars 43 forks source link

`_convertToPx` discards fractional units #43

Open pfheatwole opened 4 years ago

pfheatwole commented 4 years ago

In _convertToPx, all `length values are casts to integers. This breaks SVG files that specify width and height as floats. For example, "25.4mm" becomes "25mm", meaning the length will be "94.488px" instead of "96px".