php-phantomjs
php-phantomjs copied to clipboard
how to render png images?
This command renders a jpg file with png extension:
$request->setOutputFile("example.png");
In case anyone stumbles across this question, there is a function setFormat that can be set on a request object. So you would have something like this:
$request->setOutputFile('/path/to/save/capture/file.jpg');
$request->setFormat('png');