Crop image in circle (php)

后端 未结 3 1784
长情又很酷
长情又很酷 2021-02-06 05:28

The following code works on my laptop but doesn\'t work on remote server:



        
3条回答
  •  长发绾君心
    2021-02-06 06:02

    Changed the line:

    imagecopy($image, $mask, 0, 0, 0, 0, $newwidth, $newheight);
    

    to:

    imagecopymerge($image, $mask, 0, 0, 0, 0, $newwidth, $newheight,100);
    

提交回复
热议问题