diff options
| -rw-r--r-- | inkstitch.py | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/inkstitch.py b/inkstitch.py index 6db9d003..8a87b160 100644 --- a/inkstitch.py +++ b/inkstitch.py @@ -102,9 +102,17 @@ def convert_length(length): if not units or units == "px": return value + if units == 'pt': + value /= 72 + units = 'in' + + if units == 'pc': + value /= 6 + units = 'in' + if units == 'cm': value *= 10 - units == 'mm' + units = 'mm' if units == 'mm': value = value / 25.4 |
