$background = imagecreatetruecolor(709,709);
$whiteBackground = imagecolorallocate($background, 255, 255, 255);
imagecopyresampled($whiteBackground, $new_img,(709-$imageWidth)/2,(709-$imageHeight)/2, 0, 0, $imageWidth, $imageHeight, $width, $height);
ImageJpeg ($background,"$path/$newName.$file_ext", 85);
흰색 바탕에 GD로 이미지를 만들려고합니다. 그러나 운이 없다, 무엇을 잘못하고있는 어떤 아이디어? 나는 마법사가 whiteBackground 비트를 꺼내면 펌프가 빠져 나간다는 것을 안다. 그래서 이미지 코드를 만드는 데 아무 문제가 없다.이미지 GD - 흰색 배경
감사