Skip to content
Advertisement

imagecreatefrompng() Makes a black background instead of transparent?

I make thumbnails using PHP and GD library but my code turn png transparency into a solid black color, Is there a solution to improve my code?

this is my php thumbnail maker code:

JavaScript

Thank you

Advertisement

Answer

After imagecreatetruecolor():

JavaScript
User contributions licensed under: CC BY-SA
6 People found this is helpful
Advertisement