# HG changeset patch # User Paul Boddie # Date 1443988036 -7200 # Node ID 2e2722f377b05cbf3a7de07d86000f256036f1d2 # Parent 8e6788e5694a9bfb2ce5b1862fb91eadac2606f8 Integrated the squaring of contributions as an option. diff -r 8e6788e5694a -r 2e2722f377b0 optimiser.py --- a/optimiser.py Sun Oct 04 20:31:40 2015 +0200 +++ b/optimiser.py Sun Oct 04 21:47:16 2015 +0200 @@ -146,6 +146,7 @@ saturate = sys.argv[3:].count("-s") desaturate = sys.argv[3:].count("-d") preview = "-p" in sys.argv[3:] + square = "-2" in sys.argv[3:] and square or (lambda x: x) x = EXIF.process_file(open(input_filename)) im = PIL.Image.open(input_filename).convert("RGB")