This page demonstrates different background colors for testing the format parameter (PNG vs JPEG).
The container below has the specified background color. This can be used to test how different screenshot formats handle colors.
This text should be visible against the background color.
This is a white box with black text for contrast testing.
When testing the screenshot service with this page:
format: "png" to capture the color with lossless compression.format: "jpeg" to capture the color with lossy compression.POST /v1.0/screenshot
{
"url": "http://localhost:8000/color?color=#FF0000",
"format": "png"
}
POST /v1.0/screenshot
{
"url": "http://localhost:8000/color?color=#FF0000",
"format": "jpeg"
}
Click on a color swatch to change the background color: