Skip to content

Replace canvas with @napi-rs/canvas #1296

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

Open
beeing opened this issue Jul 1, 2024 · 4 comments
Open

Replace canvas with @napi-rs/canvas #1296

beeing opened this issue Jul 1, 2024 · 4 comments

Comments

@beeing
Copy link

beeing commented Jul 1, 2024

A suggestion for performance improvements.

Reviewing at the benchmark in https://www.npmjs.com/package/@napi-rs/canvas, this will be quick win for faster canvas replacement.

Thanks for your consideration.

@acalcutt
Copy link
Collaborator

acalcutt commented Jul 4, 2024

If someone wanted to make a PR it would be great to test the difference. Is the platform support the same (macos/linux/windows)?

@cmahnke
Copy link

cmahnke commented Dec 23, 2024

Due to Automattic/node-canvas#2448 this might also be required to avoid problems with recent node versions

@beeing
Copy link
Author

beeing commented Apr 17, 2025

As per the library intro, it is zero dependencies.

Also its still in pre-release and not fully supporting all functions yet as per Brooooooklyn/canvas#113

However, we can test it out first since the performance is much desirable.

@rgigger
Copy link

rgigger commented May 7, 2025

I made the switch for a very small project. It was very seamless and immediately fixed a bunch of issues caused by node-canvas memory management bugs. YMMV but my experience with @napi-rs/canvas was fantastic.

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

No branches or pull requests

4 participants