Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SVG conversion to a large PNG takes a lot of time #47

Open
geniot opened this issue Mar 3, 2024 · 0 comments
Open

SVG conversion to a large PNG takes a lot of time #47

geniot opened this issue Mar 3, 2024 · 0 comments

Comments

@geniot
Copy link

geniot commented Mar 3, 2024

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant