Open HerrZatacke opened 6 years ago
Would love to have this. +1
@phonezawphyo Oh - good my phone beeped after your comment. It remind's me to tell everyone here that (unfortunately) the svg vignette does not work with IE or Edge 😢 I realized that much later and forgot to update here.
In the end i had to go back to using an "regular" image. But i used it as an external "regular" image asset.
I suggest using an encoded svg instead of a png, as this reduces the filesize significantly.
Filesize before substitution: 121.803 Bytes Filesize after substitution: 17.560 Bytes Results in a reduction of the minified library by ~85%
The svg uses a
radialGradient
andfeGaussianBlur
to closely approximate the oiginal vignette.The raw (unencoded) source of the svg: