diff --git a/check.py b/check.py
index b4485df..a68acba 100644
--- a/check.py
+++ b/check.py
@@ -16,12 +16,12 @@
# along with this program. If not, see .
import os
-import jsonschema
import json
import sys
-import re
import shutil
import subprocess
+import jsonschema
+from picture import get_size
SCHEMA_VERSIONS = [3, 4, 5]
@@ -99,31 +99,10 @@ def check_packer(packer):
json.load(f)
-unit2px = {'cm': 35.43307, 'mm': 3.543307, 'in': 90.0,
- 'pc': 15.0, 'pt': 1.25, 'px': 1.0}
-
-def svg_get_height(filename):
- with open(filename, 'r') as image_file:
+def image_get_height(filename):
+ with open(filename, 'rb') as image_file:
image_data = image_file.read()
- match = re.search('