Web Scraper Test Website

Color Test Page

This page demonstrates different background colors for testing the format parameter (PNG vs JPEG).

Page Information

The container below has the specified background color. This can be used to test how different screenshot formats handle colors.

Background Color: #FF0000

This text should be visible against the background color.

This is a white box with black text for contrast testing.

Testing Instructions

When testing the screenshot service with this page:

  1. Take a screenshot with format: "png" to capture the color with lossless compression.
  2. Take a screenshot with format: "jpeg" to capture the color with lossy compression.
  3. Compare the two screenshots to see the difference in color reproduction and file size.

Sample API Requests:

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"
}

Color Swatches

Click on a color swatch to change the background color: