Hello. I've been working on a few things recently. One thing that has caused me a slight bit of grief is that with php, when I resize an image with transparency to overlay on another image (such as a meme macro or something) I lose the transparency and it turns to black. Therefore, the original image is lost and I have a simple resized overlay with transparency turned into blackness. How do I resize a transparent image in php and keep the transparency? By the way, it's an alpha png. | ![]() |
At times like this, you need to step back and say, "Where's the Balloon Party?" |
Basically, if you set
Code
imagealphablending( $targetImage, false ); imagesavealpha( $targetImage, true );
It should work.