From: anthony Date: Mon, 16 Apr 2012 04:13:00 +0000 (+0000) Subject: (no commit message) X-Git-Tag: 7.0.1-0~5796 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a4932c7a1624a7da1c426eb31d672bb3bc17166c;p=imagemagick --- diff --git a/tests/validate-colorspace.sh b/tests/validate-colorspace.sh index db282a1ab..94b9192b1 100755 --- a/tests/validate-colorspace.sh +++ b/tests/validate-colorspace.sh @@ -35,7 +35,15 @@ printf "$format2" "Too Light Color" "$too_light" "sRGB(rose)->RGB result" printf "$format2" "Too Dark Color" "$too_dark" "RGB(rose)->sRGB result" echo '' +# # Sanity checks +# +# NOTE: as a extra validation on sanity checks below... +# eval ${MAGICK} "$in" -gamma .454545 "$out" +# produces a value of 74,25,20 which is close to 73,26,21 below. +# eval ${MAGICK} "$in" -gamma 2.2 "$out" +# produces a value of 198,158,151 whcih is close to 199,160,152 below. +# if [ "X$average" != "X146,89,80" ]; then echo "Sanity Failure: Average expected to be 146,89,80 - ABORTING" error=true