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
  • 30,283
  • 6
  • 81
  • 105
Anselm
  • 7,450
  • 3
  • 28
  • 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
  • 118,664
  • 26
  • 252
  • 242