oksvg icon indicating copy to clipboard operation
oksvg copied to clipboard

SVG conversion to a large PNG takes a lot of time

Open geniot opened this issue 4 months ago • 0 comments

Hi, I'm trying to convert an SVG file to a large PNG. score But it takes a lot of time. So I'm trying to profile the CPU usage to provide a PR. Maybe you could give me a hint?

I found this comment: // This draws the entire bounds of the image, because // at this point the alpha mask does not shift with the // placement of the target rectangle in the vector rasterizer

Indeed, why is it that to draw a single SvgPath we need to iterate over the pixels of the whole canvas?

geniot avatar Mar 03 '24 23:03 geniot