Examples
Screenshot of a particular quality with JavaScript and Cypress
Not currently possible
Cypress screenshots are always PNG, and there is no 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 with JavaScript and Cypress.
We created Urlbox to make converting HTML to images easy
Learn more about our website screenshot API.