Merge two images with transparencies in PHP
问题 I'm attempting to make a composite image of several .png's with background transparencies via php and store the resulting image in my database. My problem is that the transparent sections of my images are being dropped when I merge the images. This is my code to create the composite image: $base = imagecreatefrompng('application/assets/images/vel1_bg.png'); imagealphablending($base, true); list($baseWidth, $baseHeight, $type, $attr) = getimagesize('application/assets/images/vel1_bg.png');