Rounded corners on images using PHP?

后端 未结 7 1818
孤街浪徒
孤街浪徒 2021-01-16 04:23

Does anyone know how to make a image have rounded corners using a PHP script?

7条回答
  •  花落未央
    2021-01-16 05:00

    Instead of modifying the image, why not just wrap it in some HTML that has images at each corner that overlay the original to provide the appearance of rounded corners?

    By doing the image editing in your .php script, you're going to put undue load on your web server, and that means your application won't scale well.

提交回复
热议问题