resvg
resvg copied to clipboard
Invalid blur clipping
svg
png
ink | rsvg | resvg |
---|---|---|
![]() |
![]() |
![]() |
Expected
Copyright
source https://commons.wikimedia.org/wiki/File:Vector_saturn.svg
author Kelvinsong
license https://creativecommons.org/licenses/by-sa/3.0/deed.de
Looks like everyone is wrong:
Will investigate further to find the source of the issue.
@RazrFalcon Hi! I try use your implementation of fastblur and saw same effect
fix for me was in box_blur_vert
change initialization of fv, lv
let fv: RGBA8 = backbuf[ti];
let lv: RGBA8 = backbuf[ti + width * (height - 1)];
in box_blur_horz
change change initialization of fv, lv
let fv: RGBA8 = backbuf[ti];
let lv: RGBA8 = backbuf[ti + width - 1];
ps. sorry don't have enough time to PR
Thanks, will try it out.
Hi, @RazrFalcon
I think the Blur filter might be a separate issue. We have encountered this problem in our actual business.
Fixed with the code suggested by @matpaul (see https://github.com/zimond/resvg/commit/cab0b158e00209cf8e89ef00bbe5f5e1782417eb).
Can we fix the Blur filter issue https://github.com/RazrFalcon/resvg/issues/324 first?
Test case(svg):
resvg
produces the correct output according to the SVG spec here.
The image border blur was fixes in v0.33
confirm fix