TaKO8Ki / html3png

html3png is a extension of html2png and a CLI for converting HTML to PNG.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

html3png

html3png is a CLI for converting HTML to PNG. If you set --id flag, you can clip your HTML and convert it to PNG.

Installation

You can install via npm.

$ npm install -g html3png

Flags

html3png [args]

Options:
-f, --file Input file [string][required]
-o, --output Output file [string][default: "out.png"]
-i, --id Clip img [string]
-h, --help Show help [boolean]
-v, --version Show version number [boolean]

Examples:
html3png -f example.html -o out.png

Usage

exapmle.html

Convert HTML to PNG

# convert target html file to png.
# you can set output file name.
$ html3png -f example.html -o example.png

1

Convert clippted HTML to PNG

exapmle.html

# if you use id flag, you can convert html inside a element with id you give to png.
$ html3png -f example.html -i image

2

About

html3png is a extension of html2png and a CLI for converting HTML to PNG.

License:MIT License


Languages

Language:JavaScript 62.3%Language:HTML 25.8%Language:Shell 11.9%