wkhtmltox\Image\Converter::__construct
PHP function
Edit on GitHub ✎
(wkhtmltox >= 0.1.0)
Create a new Image converter
Description
wkhtmltox\Image\Converter::__construct([string $buffer], [array $settings])
Creates an Image converter, optionally taking an input buffer and configuration settings
Parameters
bufferHTML
settingsName Description Values Changelog in URL or path of the input file, if "-" stdin is used /path/to/markup.html >= 0.1.0 out path of output file, if "-" stdout is used, by default an internal buffer is used /path/to/output.png >= 0.1.0 fmt output format to use ""defaultjpgoutput as JPEGpngoutput as PNGbmpoutput as bitmapsvgoutput as SVG >= 0.1.0 "" default jpg output as JPEG png output as PNG bmp output as bitmap svg output as SVG transparent when outputting a PNG or SVG, make the white background transparent boolean >= 0.1.0 screenWidth the with of the screen used to render in pixels 800 >= 0.1.0 smartWidth when true, screenWidth is expanded to the content width boolean >= 0.1.0 quality compression factor to use when outputting a JPEG image 94 >= 0.1.0 crop.left left/x coordinate of the window to capture in pixels 200 >= 0.1.0 crop.top top/y coordinate of the window to capture in pixels 200 >= 0.1.0 crop.width width of the window to capture in pixels 200 >= 0.1.0 crop.height height of the window to capture in pixels 200 >= 0.1.0 load.cookieJar path of file used to load and store cookies /tmp/cookies.txt >= 0.1.0