summaryrefslogtreecommitdiff
path: root/src/jp2.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/jp2.py')
-rw-r--r--src/jp2.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/jp2.py b/src/jp2.py
index 7f61312..30edb7e 100644
--- a/src/jp2.py
+++ b/src/jp2.py
@@ -116,6 +116,7 @@ def parsejp2(data):
# retrieving the dpi is optional so we do not error out if not present
return (width, height, colorspace, hdpi, vdpi)
+
if __name__ == "__main__":
import sys
width, height, colorspace = parsejp2(open(sys.argv[1]).read())