Best way to export HTML code render as a png
Unanswered
DylanDev posted this in #help-forum
DylanDevOP
I am trying to make a share button that shares your "game results receipt" as a png image. What is the best way of going about this?
just @ me if you have any advice! I am using typescript, react, and next.js. π
just @ me if you have any advice! I am using typescript, react, and next.js. π
10 Replies
@DylanDev I am trying to make a share button that shares your "game results receipt" as a png image. What is the best way of going about this?
just @ me if you have any advice! I am using typescript, react, and next.js. π
the easiest way for you as developer is to use the
You might want to also create a shareable link, so it can be easily shared with others
window.print function. Like that a print prompt will be opened and there the user can select the correct file format to save the specific results.You might want to also create a shareable link, so it can be easily shared with others
@DylanDev solved?
@B33fb0n3 <@327482388768620545> solved?
DylanDevOP
Still figuring it out!
Cape lion
I think there's an npm library to create a png from html
@DylanDev Still figuring it out!
Where do you need help with? Tell me your question. Where do you have issues?
@B33fb0n3 Where do you need help with? Tell me your question. Where do you have issues?
DylanDevOP
Im at a hackathon right now so i just have to focus on this project for this weekend π but afterwards ill get back to the project that I need to html to image thing
@DylanDev Im at a hackathon right now so i just have to focus on this project for this weekend π but afterwards ill get back to the project that I need to html to image thing
We can only help you, when you tell us where you have issues
@B33fb0n3 We can only help you, when you tell us where you have issues
DylanDevOP
What im saying is when i say "still figuring it out" im at a hackthon right now so Im not working on this project at the moment
but once this event is over, ill be able to work on that project again and if I need help ill let you know