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

Export format: "png" #13

Open
WillsterJohnson opened this issue May 22, 2022 · 0 comments
Open

Export format: "png" #13

WillsterJohnson opened this issue May 22, 2022 · 0 comments

Comments

@WillsterJohnson
Copy link

Using the canvas npm package and the built-in node:fs module, we can write the result of a "prime" export to a virtual HTMLCanvasElement and then pipe that canvas to a file.
The file size will be proportional to the configured --width, the most likely solution is a multiplier that decreases through some function as a the configured --width increases, approaching a multiplier of 1.


Please let me know if you would like this feature implemented and I will begin working on it.

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