resvg icon indicating copy to clipboard operation
resvg copied to clipboard

fix: ensure filter is also an acceptable size

Open wash2 opened this issue 4 months ago • 2 comments

Rendering currently panics for SVGs with extremely large filters, like https://github.com/Davidoc26/wallpaper-selector/blob/main/data/icons/io.github.davidoc26.wallpaper_selector.svg.

I am not terribly familiar with this project, but it seems that while the layer will be shrunk if it is too large, the filters are left unchanged, which eventually causes a source / dest size mismatch and panics when they are asserted to be the same. This change shrinks the filter via the transform as well, if necessary, which resolves the issue when I test it and matches the correct rendering.

wash2 avatar Aug 18 '25 21:08 wash2

Sorry for the lack of response, I'll try to take a closer look soon.

LaurenzV avatar Aug 25 '25 20:08 LaurenzV

Thanks!

wash2 avatar Aug 25 '25 23:08 wash2