Convert html to image(png/jpg) or pdf by PhantomJS
npm i -g html2image
html2image -a https://www.baidu.com
-a, --address [value]
url address-f, --format [value]
output file format (pdf|png|jpeg|gif)-o, --output [value]
output file path
html2image -h