Open aquaductape opened 7 months ago
I tested with the latest resvg from upstream and also got the wrong rendering, so please feedback to upstream.
I tested with the latest resvg from upstream and also got the wrong rendering, so please feedback to upstream.
Aight posted issue https://github.com/RazrFalcon/resvg/issues/760
@aquaductape I found this issue because I'm doing exactly what you're doing - porting boring avatar marble to Node. I removed feGaussianBlur from the SVG and am now using Sharp to apply the blur:
sharp(svgBuffer).blur(amount).jpeg().toBuffer();
Turns out this is ~5x faster and the result is ~20x smaller.
name hz min max mean p75 p99 p995 p999 rme samples
· marble Resvg PNG 20.5649 25.8698 70.7037 48.6264 60.7421 70.7037 70.7037 70.7037 ±19.48% 11
· marble Sharp JPEG 98.8347 8.8393 13.0902 10.1179 10.6770 13.0902 13.0902 13.0902 ±2.45% 50 fastest
The input svg file is a circle with gradients. The issue is that on the output png file, on the very right of the circle the gradient is cut off showing a sharp line.
Input svg file.
Output png file.
Input svg code.