]> thyrsus.com Git - imgsizer.git/commitdiff
This version gets JPGs properly.
authorEric S. Raymond <esr@thyrsus.com>
Thu, 5 Aug 2004 22:49:29 +0000 (22:49 +0000)
committerEric S. Raymond <esr@thyrsus.com>
Thu, 5 Aug 2004 22:49:29 +0000 (22:49 +0000)
imgsizer

index 3aa227413e985fee4f903b416e78af50bde37ac3..99ba0ed02aa7284eec982269837a327deffc99b1 100755 (executable)
--- a/imgsizer
+++ b/imgsizer
@@ -110,6 +110,12 @@ Options:
 
 """
 
+# 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
@@ -248,12 +254,6 @@ root = "."
 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: