--TEST--
Testing imagegammacorrect() of GD library
--CREDITS--
Rafael Dohms <rdohms [at] gmail [dot] com>
#testfest PHPSP on 2009-06-20
--SKIPIF--
<?php 
    
if (!extension_loaded("gd")) die("skip GD not present");
?>
--FILE--
<?php
$image 
imagecreatetruecolor(150150);

$grey imagecolorallocate($image,6,6,6);
$gray imagecolorallocate($image,15,15,15);

$half =  imagefilledarc $image757570700180$greyIMG_ARC_PIE );
$half2 =  imagefilledarc $image757570700, -180$grayIMG_ARC_PIE );

$gamma imagegammacorrect($image15);

if (
$gamma){
    
ob_start();
    
imagepng($imagenull9);
    
$img ob_get_contents();
    
ob_end_clean();
}

echo 
md5(base64_encode($img));
?>
--EXPECT--
30639772903913594bc665743e1b9ab8