--TEST-- Bug #75124 (gdImageGrayScale() may produce colors) --EXTENSIONS-- gd --SKIPIF-- = 2.2.5'); } if (!(imagetypes() & IMG_PNG)) { die("skip No PNG support"); } ?> --FILE-- > 16) & 0xff; $green = ($color >> 8) & 0xff; $blue = $color & 0xff; if ($red != $green || $green != $blue) { echo "non grayscale pixel detected\n"; break 2; } } } ?> --EXPECT-- bool(true)