php - Black box around overlaying images (GD Library) -


okay, have managed overlay 2 images retaining transparency, there's massive black box around right side of overlaying image.. it's still transparent, need box gone..

here's code..

<?php header('content-type: image/png');  $master = imagecreatefrompng('master.png'); $month = imagecreatefrompng('mar.png');  imagealphablending($month,true);  imagealphablending($master,true);  imagecopy($master, $month, 83, 290, 0, 0, imagesx($master), imagesx($master));  imagepng($master, null, 1);  ?> 

i have tried use imagesavealpha() didnt work either.. got ideas?

thanks guys

imagecopy($master, ..snip.. imagesx($master), imagesx($master));                                     ^^^^^^^---should $month                                                     ^--- should 'y'                                                       ^^^^^^^--- $month 

Comments

Popular posts from this blog

ios - iPhone/iPad different view orientations in different views , and apple approval process -

java Extracting Zip file -

C# WinForm - loading screen -