PaletteOptimiser

Changeset

46:2e2722f377b0
2015-10-04 Paul Boddie raw files shortlog changelog graph Integrated the squaring of contributions as an option.
optimiser.py (file)
     1.1 --- a/optimiser.py	Sun Oct 04 20:31:40 2015 +0200
     1.2 +++ b/optimiser.py	Sun Oct 04 21:47:16 2015 +0200
     1.3 @@ -146,6 +146,7 @@
     1.4      saturate = sys.argv[3:].count("-s")
     1.5      desaturate = sys.argv[3:].count("-d")
     1.6      preview = "-p" in sys.argv[3:]
     1.7 +    square = "-2" in sys.argv[3:] and square or (lambda x: x)
     1.8  
     1.9      x = EXIF.process_file(open(input_filename))
    1.10      im = PIL.Image.open(input_filename).convert("RGB")