Reference

wkhtmltoimage(1)

html to image converter

Name

wkhtmltoimage - html to image converter

Synopsis

wkhtmltoimage [OPTIONS]... <input file> <output file>

Description

Converts an HTML page into an image,

General Options

--allow <path>

Allow the file or files from the specified folder to be loaded (repeatable)

--bypass-proxy-for <value>

Bypass proxy for host (repeatable)

--cache-dir <path>

Web cache directory

--checkbox-checked-svg <path>

Use this SVG file when rendering checked checkboxes

--checkbox-svg <path>

Use this SVG file when rendering unchecked checkboxes

--cookie <name> <value>

Set an additional cookie (repeatable), value should be url encoded.

--crop-h <int>

Set height for cropping

--crop-w <int>

Set width for cropping

--crop-x <int>

Set x coordinate for cropping

--crop-y <int>

Set y coordinate for cropping

--custom-header <name> <value>

Set an additional HTTP header (repeatable)

--custom-header-propagation

Add HTTP headers specified by --custom-header for each resource request.

--no-custom-header-propagation

Do not add HTTP headers specified by --custom-header for each resource request.

--debug-javascript

Show javascript debugging output

--no-debug-javascript

Do not show javascript debugging output

--encoding <encoding>

Set the default text encoding, for input

-H, --extended-help

Display more extensive help, detailing less common command switches

-f, --format <format>

Output file format

--height <int>

Set screen height (default is calculated from page content)

-h, --help

Display help

--htmldoc

Output program html help

--images

Do load or print images

--no-images

Do not load or print images

-n, --disable-javascript

Do not allow web pages to run javascript

--enable-javascript

Do allow web pages to run javascript

--javascript-delay <msec>

Wait some milliseconds for javascript finish

--license

Output license information and exit

--load-error-handling <handler>

Specify how to handle pages that fail to load: abort, ignore or skip

--load-media-error-handling <handler>

Specify how to handle media files that fail to load: abort, ignore or skip

--disable-local-file-access

Do not allowed conversion of a local file to read in other local files, unless explicitly allowed with --allow

--enable-local-file-access

Allowed conversion of a local file to read in other local files.

--log-level <level>

Set log level to: none, error, warn or info

--manpage

Output program man page

--minimum-font-size <int>

Minimum font size

--password <password>

HTTP Authentication password

--disable-plugins

Disable installed plugins

--enable-plugins

Enable installed plugins (plugins will likely not work)

--post <name> <value>

Add an additional post field (repeatable)

--post-file <name> <path>

Post an additional file (repeatable)

-p, --proxy <proxy>

Use a proxy

--proxy-hostname-lookup

Use the proxy for resolving hostnames

--quality <int>

Output image quality (between 0 and 100)

-q, --quiet

Be less verbose, maintained for backwards compatibility; Same as using --log-level none

--radiobutton-checked-svg <path>

Use this SVG file when rendering checked radiobuttons

--radiobutton-svg <path>

Use this SVG file when rendering unchecked radiobuttons

--readme

Output program readme

--run-script <js>

Run this additional javascript after the page is done loading (repeatable)

--ssl-crt-path <path>

Path to the ssl client cert public key in OpenSSL PEM format, optionally followed by intermediate ca and trusted certs

--ssl-key-password <password>

Password to ssl client cert private key

--ssl-key-path <path>

Path to ssl client cert private key in OpenSSL PEM format

--stop-slow-scripts

Stop slow running javascripts

--no-stop-slow-scripts

Do not Stop slow running javascripts

--user-style-sheet <path>

Specify a user style sheet, to load with every page

--username <username>

HTTP Authentication username

-V, --version

Output version information and exit

--width <int>

Set screen width, note that this is used only as a guide line. Use --disable-smart-width to make it strict.

--window-status <windowStatus>

Wait until window.status is equal to this string before rendering page

--zoom <float>

Use this zoom factor

Contact

If you experience bugs or want to request new features please visit <https://wkhtmltopdf.org/support.html>

Authors

Jakob Truelsen <[email protected]>
Ashish Kulkarni <[email protected]>
Jan Habermann <[email protected]>
Pablo Ruiz García <[email protected]>
Trevor North <[email protected]>
Nate Pinchot <[email protected]>
pussbb <[email protected]>
Aaron Stone <[email protected]>
Patrick Widauer @a-ctor
Peter van der Tak <[email protected]>
Benjamin Sinkula <[email protected]>
Kasper F. Brandt <[email protected]>
Michael Nitze <[email protected]>
Rok Dvojmoc <[email protected]>
theirix <[email protected]>
Tomsgu <[email protected]>
Artem Butusov <[email protected]>
Christian Sciberras <[email protected]>
Daniel M. Lambea <[email protected]>
Douglas Bagnall <[email protected]>
peterrehm <[email protected]>
Renan Gonçalves <[email protected]>
Ruslan Grabovoy <[email protected]>
Sander Kleykens <[email protected]>
Adam Thorsen <[email protected]>
Albin Kerouanton <[email protected]>
Alejandro Dubrovsky <[email protected]>
Arthur Cinader @acinader
Benoit Garret <[email protected]>
Bill Kuker <[email protected]>
cptjazz <[email protected]>
daigot <[email protected]>
Destan Sarpkaya @destan
Duncan Smart <[email protected]>
Emil Lerch <[email protected]>
Erik Hyrkas <[email protected]>
Erling Linde <[email protected]>
Fábio C. Barrionuevo da Luz <[email protected]>
Fr33m1nd <[email protected]>
Frank Groeneveld <[email protected]>
Immanuel Häussermann <[email protected]>
Jake Petroules <[email protected]>
James Macdonald <[email protected]>
Jason Smith <[email protected]>
John Muccigrosso @Jmuccigr
Julien Le Goff <[email protected]>
Kay Lukas <[email protected]>
Kurt Revis <[email protected]>
laura @holamon
Marc Laporte <[email protected]>
Matthew M. Boedicker <[email protected]>
Matthieu Bontemps <[email protected]>
Max Sikstrom <[email protected]>
Nolan Neustaeter <[email protected]>
Oleg Kostyuk <[email protected]>
Pankaj Jangid <[email protected]>
robinbetts <[email protected]>
Sem <[email protected]>
Stefan Weil <[email protected]>
Stephen Kennedy <[email protected]>
Steve Shreeve <[email protected]>
Sven Nierlein <[email protected]>
Tobin Juday <[email protected]>
Todd Fisher <[email protected]>
Костадин Дамянов <[email protected]>
Emmanuel Bouthenot <[email protected]>
Rami @icnocop
Khodeir-hubdoc @Khodeir-hubdoc
Jonathan Jefferies @jjok
Joe Ayers <[email protected]>
Jeffrey Cafferata <[email protected]>
rainabba
Mehdi Abbad
Lyes Amazouz
Pascal Bach
Mário Silva

History

--bypass-proxy-for since Debian 9 (Stretch); --log-level since Debian 10 (Buster); --proxy-hostname-lookup since Debian 10 (Buster); --ssl-crt-path since Debian 10 (Buster); --ssl-key-password since Debian 10 (Buster); --ssl-key-path since Debian 10 (Buster).