oksvg
oksvg copied to clipboard
SVG conversion to a large PNG takes a lot of time
Hi,
I'm trying to convert an SVG file to a large PNG.
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?