From aba8a35e0a8637e223d99f443dc95c40a9205164 Mon Sep 17 00:00:00 2001
From: Toke Eskildsen <te@ekot.dk>
Date: Mon, 9 Dec 2013 14:28:35 +0100
Subject: [PATCH] Made the property ASSUME_GREY configurable

---
 analyze.sh | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/analyze.sh b/analyze.sh
index b741bcb..73a2f49 100755
--- a/analyze.sh
+++ b/analyze.sh
@@ -6,8 +6,11 @@
 # Requirements: ImageMagick's identify and convert
 #
 
-# TODO: Move this outside of the script
-ASSUME_GREY=true
+# If true, input files are assumed to be greyscale.
+# If false, they are converted to greyscale before extracting statistics.
+if [ "." == ".$ASSUME_GREY" ]; then
+    ASSUME_GREY=true
+fi
 
 # TODO: Accept destination for identify-file as input
 
-- 
GitLab