]> granicus.if.org Git - imagemagick/blobdiff - tests/validate-colorspace.sh
(no commit message)
[imagemagick] / tests / validate-colorspace.sh
index 63f3d796d5146f7f478b79f2c53a433594424491..6bdf292a007b9b900cc61c51bb9ca07507d9cafb 100755 (executable)
 #
 . ${srcdir}/tests/common.sh
 
+depth=`eval convert 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:-"
@@ -95,8 +101,12 @@ test_color CMY   sRGB
 test_color CMYK  sRGB
 test_color HSL   sRGB
 test_color HSB   sRGB
-test_color Lab   sRGB
+test_color HWB   sRGB
+test_color LAB   sRGB
+test_color Log   sRGB
 test_color YIQ   sRGB
+test_color YUV   sRGB
 test_color YCbCr sRGB
+test_color OHTA  sRGB
 
-$error
+eval ! $error