00001
00002
00003
00004
00005 """
00006 JPG : Object handling JPG files and their features.
00007 PNG : Object handling PNG files and their features.
00008 GIF : Object handling GIF files and their features.
00009 TESTER : Object handling selection of the best file from temp files.
00010 TEMPDIR : Directory to save temporary files to.
00011 """
00012
00013 VERSION = "0.4"
00014 JPG = None
00015 PNG = None
00016 GIF = None
00017 TESTER = None
00018 TEMPDIR = None
00019 OUTDIR = None
00020 OUTEXISTED = False
00021
00022 ADVPNG = True
00023
00024
00025
00026
00027
00028
00029 VERBOSITY = 2
00030
00031 NOSTRIP = False
00032
00033 OPTS_SHORT =("ho:t:qvm:r" +
00034 "jpg" +
00035 "J:U:T:DOZ:A:K" +
00036 "P:L:H:XY:R:EB:" +
00037 "G:FI:C:" +
00038 "NM:Q:S:" +
00039 "W:H:s"
00040 )
00041
00042 OPTS_LONG = ["help", "out-dir=", "temp-dir=",
00043 "quiet", "verbose",
00044 "prc-mult=","recur",
00045
00046 "jpg", "png", "gif",
00047
00048 "j-set=", "j-qual=", "j-step=",
00049 "j-inter", "j-optim", "j-s-fact=",
00050 "j-opt-lv=", "j-gray",
00051
00052 "p-set=", "p-lev=", "p-filt=",
00053 "p-no-tru", "p-pal=", "p-gray=",
00054 "p-inter", "p-opt-lv=",
00055
00056 "g-set=", "g-inter", "g-depth=",
00057 "g-opt-lv=",
00058
00059 "no-strip", "mode=", "min-qual=",
00060 "max-size=",
00061
00062 "width=", "height=", "stretch",
00063 ]