--TEST--
Bug #37360 (gdimagecreatefromgif, bad image sizes)
--SKIPIF--
<?php
    
if (!extension_loaded('gd')) die("skip gd extension not available\n");
?>
--FILE--
<?php
$small 
imagecreatetruecolor(1010);
$c1 imagecolorallocatealpha($small255,0,0,50);
imagecolortransparent($small0);
imagealphablending($small0);
imagefilledrectangle($small0,06,6$c1);

$width 300;
$height 300;
$srcw imagesx($small);
$srch imagesy($small);

$img imagecreatetruecolor($width$height);

imagecolortransparent($img0);
imagealphablending($imgfalse);
imagecopyresized($img$small0,00,0$width$height$srcw$srch);
imagesavealpha($img1);

$c imagecolorat($img0,0);
printf("%X"$c);
?>
--EXPECTF--
32FF0000