Cloudbrowser Labs

PNG Viewport Check

Compare the size written into a browser screenshot with the viewport and pixel ratio you expected.

Capture inputs

The file stays in this tab. The tool reads the first 33 bytes and checks the image header and its checksum.

Comparison

Choose a PNG file or load an example.

Image dimensions
—
Expected at CSS scale
—
Expected at device scale
—

Compare captures of the same region

At device scale, a 390 × 640 CSS viewport and a pixel ratio of 2 predict a 780 × 1280 image. At CSS scale, the same viewport predicts 390 × 640. The device-scale estimate rounds each dimension to the nearest pixel.

In one Playwright test on headful remote Chrome, a full-page PNG measured 375 × 960 CSS pixels. The document was taller than the viewport, and the visible scrollbar reduced its measured width by 15 pixels. For full-page captures, compare the PNG with the actual document bounds. A clip or a desktop capture can have different dimensions again.

The Cloudbrowser browser connection guide explains connecting to the page through CDP and viewing the full Chrome desktop through Live View.