Examples

HTML to JPEG with JavaScript and Cypress

Not currently possible

Cypress screenshots are always PNG — JPG output is not supported.

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

Find out how to generate a PNG with JavaScript and Cypress.

We created Urlbox to make converting HTML to images easy

Learn more about our website screenshot API.