Examples
Screenshot of a particular quality with PHP and Selenium
Not currently possible
Selenium does not currently support natively creating JPG screenshots, and there is no alternative file type which supports a quality option.
As a workaround, you can use an image manipulation tool to convert and compress the image after it has been generated.
Find out how to generate a PNG from HTML with PHP and Selenium.
We created Urlbox to make converting HTML to images easy
Learn more about our website screenshot API.