Transparent Circle Cropped Image with PHP

后端 未结 3 1698
醉话见心
醉话见心 2020-12-17 05:03

I want to crop a circle image using PHP but it seems that my new image have some transparent pixels. Of course, I want ONLY the outside area of the ellipse to have backgroun

3条回答
  •  不知归路
    2020-12-17 05:29

    You are cropping and removing black color ( or setting black as transparent ). Since your image has black color in it, it also gets removed.

    Instead of removing the color, try to replace the outer layers color to, ie, pink and then set it to transparent.

提交回复
热议问题