From 5850674d45797d05c22b0d7294c9d1769e0ad90d Mon Sep 17 00:00:00 2001
From: Toke Eskildsen <te@ekot.dk>
Date: Wed, 4 Dec 2013 11:53:21 +0100
Subject: [PATCH] Bugfix: The unique greyscales and the percentages was
 sometimes doubled

---
 analyze.sh | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/analyze.sh b/analyze.sh
index 26f28cc..e4c6dd6 100755
--- a/analyze.sh
+++ b/analyze.sh
@@ -17,7 +17,7 @@ ASSUME_GREY=true
 # Output: The name of the identity file
 function im_identify() {
     local SRC="$1"
- 
+
     local IDENTIFY=${SRC%%.*}.identify
     if [ -f "$IDENTIFY" ]; then
         echo "$IDENTIFY"
@@ -52,8 +52,8 @@ function grey_stats() {
     local GREY=${SRC%%.*}.grey
     local INFO=`cat "$IDENTIFY"`
     # TODO: No good as large images does not produce a Colormap
-    #local VALUES=`cat "$IDENTIFY" | grep -B 1000 Colormap`
-    local VALUES="$INFO"
+    local VALUES=`cat "$IDENTIFY" | grep -A 256 Histogram`
+#    local VALUES="$INFO"
 
     local SAVEIFS=$IFS
     IFS=$(echo -en "\n")
-- 
GitLab