1--TEST-- 2Bug #37360 (gdimagecreatefromgif, bad image sizes) 3--EXTENSIONS-- 4gd 5--FILE-- 6<?php 7$small = imagecreatetruecolor(10, 10); 8$c1 = imagecolorallocatealpha($small, 255,0,0,50); 9imagecolortransparent($small, 0); 10imagealphablending($small, 0); 11imagefilledrectangle($small, 0,0, 6,6, $c1); 12 13$width = 300; 14$height = 300; 15$srcw = imagesx($small); 16$srch = imagesy($small); 17 18$img = imagecreatetruecolor($width, $height); 19 20imagecolortransparent($img, 0); 21imagealphablending($img, false); 22imagecopyresized($img, $small, 0,0, 0,0, $width, $height, $srcw, $srch); 23imagesavealpha($img, 1); 24 25$c = imagecolorat($img, 0,0); 26printf("%X", $c); 27?> 28--EXPECT-- 2932FF0000 30