Can PNG image transparency be preserved when using PHP’s GDlib imagecopyresampled?
The following PHP code snippet uses GD to resize a browser-uploaded PNG to 128×128. It works great, except that the transparent areas in the original image are being replaced with a solid color- black in my case.