Skip to main content

How the Measurements on This Site Were Made

4 min read

The guides on this site quote figures such as "the chicken photo at JPG 90 comes to 343KB". Rather than repeat the same explanation in every article, this page describes which images and tools those numbers came from. If you followed a "how the measurements were made" link from another guide, this is it.

The two test photos

Photo measurements use two pictures the operator took with a smartphone.

The two test photos: a foil-wrapped chicken dish on the left and a dog's face on the right, scaled down to 960×1280 and 952×1280

  • Chicken: a chicken dish wrapped in foil, used as shot.
  • Dog: a dog's face. A TV in the background showed a person, so that (left) side was cropped off.

Both were scaled to 1280px on the long side and saved as PNG (960×1280 and 952×1280), and those files serve as the reference masters. The masters carry no EXIF or other metadata. The original photos contain location data and are not published on the site; what appears in the guides is only these reduced versions or enlarged crops.

There is one exception. Step 1 of Reducing Image File Size for the Web has to show how much resizing saves, so it starts from the unreduced smartphone original (3000×4000, 2.6MB).

Photos that showed people's faces, hinted at a neighborhood, or carried someone else's trademark (such as a sports team logo) were left out even though they were taken.

The HEIC files were not made by an iPhone

The operator doesn't own an iPhone. The HEIC files in the HEIC guide were made by saving the master PNGs as HEIC with pillow-heif (which uses libheif and the x265 encoder). The format is the same as an iPhone photo, so this site's converter detects and handles them the same way. An iPhone's encoder settings may differ, though, so read the HEIC-versus-JPG size differences as "what this encoder produced".

Images drawn for the articles

Everything that isn't a photo (logos, icons, a settings screen) is a made-up sample drawn for the article. No real game, company or brand logos are used.

Tools used

WhatHow
File size by format and qualityThe size of the files saved by this site's converter. The converter saves through the browser (Canvas), so the same quality number can give different results in other programs
Screenshots, batch conversion speedThe converter driven automatically in Chromium with Playwright. Speeds come from a single development desktop
Closeness to the source (PSNR)A Python script comparing the master PNG and the result pixel by pixel
Whether EXIF survivedReading the result back with Pillow and checking the fields
Leading file bytes, transparent pixel countssharp and Pillow scripts, plus system tools such as xxd and PowerShell's Format-Hex
WebGL texture behaviorWebGL code run in Chrome launched by Playwright, reading back error codes and pixel values

The measurement scripts are not part of the site's repository. With the conditions stated in each article (image size, format, quality number, fit method), the same experiment can be repeated in this site's converter.

Reading the numbers

  • They come from one or two photos. A smooth sky and a textured lawn give very different file sizes at the same settings. The figures in the guides illustrate a tendency; they are not values that fit every photo.
  • Quality numbers mean different things in each format and encoder. JPG 80 and WebP 80 are not the same visual quality, so format comparisons also list values compared at equal PSNR.
  • PSNR is only one way to measure quality. It doesn't always match what the eye sees, which is why enlarged comparison images are included too.
  • Results can vary by browser and version. The browser does the conversion, so another browser or a later version may give slightly different sizes with the same settings.
  • Dated records (such as a request log) reflect how the site was set up on that day and need to be re-measured if the site changes.

The most reliable way to find which format is smallest for your image is to convert it. The result screen shows the size before and after side by side.

Convert PNG to JPG

More guides