]> granicus.if.org Git - imagemagick/commitdiff
(no commit message)
authorcristy <urban-warrior@git.imagemagick.org>
Wed, 18 Apr 2012 17:39:32 +0000 (17:39 +0000)
committercristy <urban-warrior@git.imagemagick.org>
Wed, 18 Apr 2012 17:39:32 +0000 (17:39 +0000)
tests/validate-colorspace.sh

index f45de94fe14828efd263b6aebd85e7025a7f3a45..cb6b51967ac8d7737ee945f9904fbf986d094ff0 100755 (executable)
 #
 . ${srcdir}/tests/common.sh
 
+depth=`eval ${MAGICK} xc:none -format '%[fx:QuantumRange]' info:-`
+echo $depth
+if [ "$depth" != "65535" ]; then
+  exit 0
+fi
+
 # how to generate a one pixel (average rose) color and output its values
 in="rose: -scale 1x1"    # a one pixel image of the average color.
 out="-format '%[fx:int(255*r+.5)],%[fx:int(255*g+.5)],%[fx:int(255*b+.5)]' info:-"