The code below replaces the transparent background with a black background.
imagescale()
seems to cause it.
How can I get this to display without the black background after using imagescale()
?
$im = imagecreatefrompng('ipad.png');
header('Content-type: image/png');
$im = imagescale($im, 300);
imagepng($im);