Im trying to copy a image(a.png) on another. Both contain transparency. a.png shows up with a white background on save.
$base=imagecreatefrompng("base.png");
imagealphablending( $base, false );
imagesavealpha( $base, true );
$temp=imagecreatefrompng('a.png');
imagecopymerge($base,$temp,64,144,0,0,16,16,100);
Try this:
$base=imagecreatefrompng("base.png");
imagealphablending( $base, true );
imagesavealpha( $base, true );
$temp=imagecreatefrompng('a.png');
imagecopy($base,$temp,64,144,0,0,16,16);
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With