Rounded corners on images using PHP?

后端 未结 7 1801
孤街浪徒
孤街浪徒 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:03

    It can be done using php-gd, but I ended up passing that task to the browser, using CSS:

    <img src="photo.jpg" width="42" height="42" alt="My cool photo" style="border-radius: 15px; -moz-border-radius: 15px;" />

    0 讨论(0)
提交回复
热议问题