bubkoo / html-to-image

✂️ Generates an image from a DOM node using HTML5 canvas and SVG.
MIT License
5.41k stars 505 forks source link

How can I get the size of loaded image (to make a progress bar) ? #355

Open hyeda1103 opened 1 year ago

hyeda1103 commented 1 year ago

I want to make a progress bar that indicates the image downloading progress. Is there any option that I can use to get the size of loaded image?

vivcat[bot] commented 1 year ago

👋 @hyeda1103

Thanks for opening your first issue here! If you're reporting a 🐞 bug, please make sure you include steps to reproduce it. To help make it easier for us to investigate your issue, please follow the contributing guidelines.

We get a lot of issues on this repo, so please be patient and we will get back to you as soon as we can.

qq15725 commented 1 year ago

I want to make a progress bar that indicates the image downloading progress. Is there any option that I can use to get the size of loaded image?

can try this branch progress option ~