Screenshot of a particular quality with Ruby and Selenium

Not currently possible

Selenium does not currently support natively creating JPG screenshots. There is also not an alternative file type which supports a quality option.

As a workaround, you can also use an image manipulation tool to convert the image after it has been generated.

Find out how to generate a PNG from HTML with Ruby and Selenium.

We created Urlbox to make converting HTML to images easy

Learn more about our website screenshot API.