How to achieve a blur effect in PHP?

前端 未结 3 393
误落风尘
误落风尘 2020-12-15 14:31

I\'ve been looking for PHP code to apply a Gaussian blur to images.

What I\'ve done was like this:



        
3条回答
  •  悲&欢浪女
    2020-12-15 15:23

    You can use ImageMagic

    Original Image

    enter image description here

    Run via exec

    convert a.png -blur 0x3 a_blur.png
    

    Output

    OR Run

    convert a.png -blur 0x8 a_blur.png
    

    enter image description here

提交回复
热议问题