Web Scraper Test Website

Transparency Test Page

This page demonstrates various transparency and alpha channel effects to test PNG vs JPEG format differences.

Page Information

This page will show how different image formats handle transparency and semi-transparent elements.

Alpha Transparency Samples

These samples show different levels of transparency against a checkerboard background:

100% Opacity

rgba(74, 111, 165, 1.0)

75% Opacity

rgba(74, 111, 165, 0.75)

50% Opacity

rgba(74, 111, 165, 0.5)

25% Opacity

rgba(74, 111, 165, 0.25)

10% Opacity

rgba(74, 111, 165, 0.1)

0% Opacity

rgba(74, 111, 165, 0)

Interactive Transparency

50%
rgba(74, 111, 165, 0.5)

Alpha Gradient

This gradient transitions from fully transparent to fully opaque:

Layered Transparency

This example shows multiple transparent layers stacked on top of each other:

Format Comparison

This section illustrates the difference between PNG (supports transparency) and JPEG (does not support transparency):

PNG Format

PNG preserves transparency

PNG format supports alpha channel transparency, making it ideal for images that need transparent or semi-transparent areas.

JPEG Format

JPEG replaces transparency with white

JPEG format does not support transparency. Transparent areas are typically replaced with a solid color (usually white) when converting to JPEG.

Testing Instructions

When testing the screenshot service with this page:

  1. First take a screenshot in PNG format to establish a baseline with transparency preserved.
  2. Then take a screenshot in JPEG format to see how transparency is handled (typically replaced with white).
  3. Compare the results to verify the format differences in transparency handling.

Sample API Requests:

POST /v1.0/screenshot
{
  "url": "http://localhost:8000/transparency",
  "format": "png"
}
POST /v1.0/screenshot
{
  "url": "http://localhost:8000/transparency",
  "format": "jpeg"
}