shibukawa / imagesize_py

MIT License
227 stars 44 forks source link

Incorrect conversion factor for `pt` to `px` #42

Open pfheatwole opened 4 years ago

pfheatwole commented 4 years ago

https://github.com/shibukawa/imagesize_py/blob/5b8557e64cf7a9a24c472ede7b77967705bef6c2/imagesize.py#L74

Assuming DPI=96, converting points to pixels should be 96 / 72. SVG files using pt are wrong by a factor of 12.

tk0miya commented 4 years ago

+1. Let's post a PR!