Rounded corners on images using PHP?

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

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

7条回答
  •  佛祖请我去吃肉
    2021-01-16 04:54

    GD is great for image manipulation, but it would be much easier for you and much easier on your server if you used CSS.

    Here's a great tutorial for some cool image effects using CSS:

    http://www.webdesignerwall.com/tutorials/css-decorative-gallery/

    For modern browsers, you can do it in pure CSS:

    http://www.css3.info/preview/rounded-border/

    A couple of other noteworthy ones:

    http://www.spiffycorners.com/

    http://www.html.it/articoli/niftycube/index.html

提交回复
热议问题