"""
+# Optimization latches -- if an attempt to invoke a command returns 127
+# "not found" there will turn off and that command won't be tried again.
+magick = 1 # using ImageMagick by default
+rdjpgcom = 1 # using rdjpcom by default
+pythonimage = 1 # use python imaging library
+
def attrformat(xc, dim):
if lower:
res = " " + dim
out = "imgsizer-out$$"
dir = "." # NOTE: if you are doing <yourfile make sure that pwd is correct!
-# Optimization latches -- if an attempt to invoke a command returns 127
-# "not found" there will turn off and that command won't be tried again.
-magick = 0 # using ImageMagick by default
-rdjpgcom = 0 # using rdjpcom by default
-pythonimage = 1 # use python imaging library
-
# Collect options from the environment first, then the command line
options = os.environ.get("IMGSIZER")
if options: