如何在PHP中使用GD库覆盖Image?

时间:2016-03-10 10:56:55

标签: php gd

我正在使用以下代码:

$source = imagecreatefrompng($filepath);   
imagerotate($source, $degrees);         
imagepng ( $rotated, $fileLocation, $quality);

但是如果图像已经存在,则imagepng返回false意味着函数不会覆盖该文件。

如何覆盖现有文件? 感谢

0 个答案:

没有答案
相关问题