HTML to JPEG with Ruby and Selenium
Not currently possible
Selenium does not currently support natively creating JPG screenshots.
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.