SkillAgentSearch skills...

Html2image

convert html to image/pdf by phantomjs

Install / Use

/learn @huang-x-h/Html2image
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

html2image

Convert html to image(png/jpg) or pdf by puppeteer

Install

npm i -g html2image

Usage

html2image -a https://www.baidu.com

Options

  • -a, --address [value] url address
  • -f, --format [value] output file format (pdf|png|jpeg|gif)
  • -o, --output [value] output file path

Help

html2image -h

TODO

If the url address contain &, you should use encodeURIComponent to encode the url address, then pass to the html2image command

Related Skills

View on GitHub
GitHub Stars12
CategoryDevelopment
Updated3y ago
Forks6

Languages

JavaScript

Security Score

80/100

Audited on Mar 14, 2023

No findings