OpenWebProject Get HTML as image
Download HTML as image
Installation
npm install owp.get-html-as-image --save
Usage
;
- container: Dom element or string of element ID.
- filename: File name to store the file as.
- Optional
- Defaults to
"html.png"
- Is specified without an extension/ending
.png
will be used
Examples
//Download image from container with ID "myDiv" and save as "image.png" //Download image from container with ID "myDiv" and save as "image.png" //Download image with default name => html.png //Download image with default file extension => image.png //Download image with different file names and extensions