1

I´m trying to apply a gaussian blur to a png image in Firefox. For WebKit browsers I use the CSS3 filter property. In CSS, I use a 2px blur but how can I create the same effect in SVG with "stdDeviation"? Thank you!

Michael Mullany
  • 28,202
  • 6
  • 74
  • 98
Anselm
  • 6,854
  • 3
  • 27
  • 37

1 Answers1

2

Just apply an feGaussianBlur filter to an SVG <image> element using the filter attribute.

<defs>
<filter id="Gaussian_Blur">
<feGaussianBlur in="SourceGraphic" stdDeviation="5"/>
</filter>
</defs>
Robert Longson
  • 110,343
  • 23
  • 240
  • 227