$im = imagerotate($im, 270, 255);
imagepng($im, $dest);
- echo md5_file($dest) . "\n";
+ $im2 = imagecreatefrompng($dest);
+
+ // Uniform fill + n x 90degrees rotation , the color value does not change
+ $col = imagecolorat($im2, 20, 20);
+ // 16777215 - 255 = 16776960
+ echo "$col\n";
+
@unlink($dest);
?>
--EXPECT--
-cc867fd65c30883463ce58d0341f0997
+16776960
@unlink($dest);
$im = ImageCreateTrueColor(10, 10);
imagealphablending($im, true);
-imagesavealpha($im, false);
+imagesavealpha($im, true);
$bordercolor=ImageColorAllocateAlpha($im, 0, 0, 0, 2);
$color = ImageColorAllocateAlpha($im, 0, 0, 0, 1);
ImageFillToBorder($im, 5, 5, $bordercolor, $color);
imagepng($im, $dest);
-echo md5_file($dest) . "\n";
+
+$im2 = imagecreatefrompng($dest);
+$col = imagecolorat($im2, 5, 5);
+$color = imagecolorsforindex($im2, $col);
+echo $color['alpha'];
@unlink($dest);
?>
--EXPECT--
-08287f8f5d406946009df5f04ca83dc0
+1