I have this code to merge in 2 images to create a new one. When I remove this
$sold = imagecreatefrompng("stamp_sold.png");
imagecopy($thumb, $sold, 0, 0, 0, 0, 58, 75);
It works fine, add that in as I want include that image and it fails. How can I fiix this?
header('Content-Type: image/jpeg');
$filename = "../item-img/" . $_GET['file'];
list($width, $height) = getimagesize($filename);
$percent = 0.01;
do {
$percent = $percent + 0.01;
$newwidth = $width * $percent;
$newheight = $height * $percent;
} while ($newwidth < 440 && $newheight < 340);
$startpoint_x = 220 - ($newwidth / 2);
$startpoint_y = 170 - ($newheight/ 2);
$thumb = imagecreatetruecolor(440, 340);
$white = imagecolorallocate($thumb, 48, 48, 48);
imagefill($thumb, 0, 0, $white);
$source = imagecreatefromjpeg($filename);
$sold = imagecreatefrompng("stamp_sold.png");
imagecopy($thumb, $sold, 0, 0, 0, 0, 58, 75);
imagecopyresized($thumb, $source, $startpoint_x, $startpoint_y, 0, 0, $newwidth, $newheight, $width, $height);
imagejpeg($thumb);
?>