Skip to content

demo · runs in this browser · nothing is uploaded

Demo.

Drop an image, or try a sample. It is encoded and scored here, and the numbers are browser estimates. The CLI measures the live page.

Drop an image here.

JPEG, PNG, WebP or AVIF. Up to 4000 px on the long side. Or click to choose a file.

Samples:

1. Display width

The image's width on the page, at each viewport. The demo encodes at the widths these rows need.

viewportcss pxdprneeded px
iphone-se3752x750
iphone-153903x1170
pixel-74122.625x1082
iphone-15-pro-max4303x1290
desktop14402x2880
desktop-128012801x1280
Needed px = CSS width x dpr, rounded up. Viewports and dpr are the CLI's six.

2. Run

Scoring: SSIMULACRA2 from ImgTune's crate, built for the web. Codecs: jSquash (MozJPEG, libwebp, libavif). Each codec is downloaded the first time you drop a file. Images up to 4000 px on the long side are decoded here, and the page keeps them only while it is open.

MIT License. Third-party code is listed in NOTICE.