summaryrefslogtreecommitdiff
path: root/src/jp2.py
diff options
context:
space:
mode:
authorJohannes Schauer <josch@debian.org>2017-01-20 05:49:31 +0100
committerJohannes Schauer <josch@debian.org>2017-01-20 05:49:31 +0100
commitf71d3883871752e9ab72bb175c89a378df2af529 (patch)
tree98fdde17ba8a53ac5d03fe672289b4d3cdeba2cf /src/jp2.py
parentd3481fe48afe150f38f331048abe6452b8389723 (diff)
Import upstream version 0.2.3
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())