From db2ffcedecc5553f66064221e79cec64a4c3c28e Mon Sep 17 00:00:00 2001
From: Toke Eskildsen <te@ekot.dk>
Date: Tue, 26 Nov 2013 16:25:42 +0100
Subject: [PATCH] Temporary bugfix for wrong greyscale statistics with large
 images

---
 analyze.sh | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/analyze.sh b/analyze.sh
index 59373bd..26f28cc 100755
--- a/analyze.sh
+++ b/analyze.sh
@@ -51,7 +51,9 @@ function grey_stats() {
     local IDENTIFY=$(im_identify "$SRC")
     local GREY=${SRC%%.*}.grey
     local INFO=`cat "$IDENTIFY"`
-    local VALUES=`cat "$IDENTIFY" | grep -B 1000 Colormap`
+    # TODO: No good as large images does not produce a Colormap
+    #local VALUES=`cat "$IDENTIFY" | grep -B 1000 Colormap`
+    local VALUES="$INFO"
 
     local SAVEIFS=$IFS
     IFS=$(echo -en "\n")
-- 
GitLab