Create a transparent png file using PHP

前端 未结 3 1190
我在风中等你
我在风中等你 2021-01-01 20:13

Currently I would like to create a transparent png with the lowest quality .

The code:



        
3条回答
  •  轮回少年
    2021-01-01 21:02

    1) You can create a new png file without any existing one. 2) You get a black color image because you use imagecreatetruecolor();. It creates a highest quality image with a black background. As you need a lowest quality image use imagecreate();

    
    

    You can read more in this article: How to Create an Image Using PHP

提交回复
热议问题