html-to-image
Introduction
Generates an image from an HTML file.
Requirements
node >=10
Install
npm i
-g
Usage
html-to-image path-to-html/index.html ./image.png
Arguments
html
: path to your html file
output
: where the image should be saved
Flags
–type (-t)
: image format to be saved (png
jpeg)
–transparent
: use a transparent background (true
false)