| Concept | What it means here |
|---|---|
| Dimensions | Control the number of pixels that must be encoded |
| Quality setting | A request to the browser encoder, not a universal score |
| File bytes | The measured size of the specific exported file |
Establish a useful reference
Start with the best available source, not a copy that has already passed through a messaging application. A reference with unknown resizing and compression history makes it difficult to tell which artifacts came from the current export. Keep the original in a separate location and make delivery copies from it. The reference does not need to be the largest file on disk; it needs to preserve the detail that matters for the task.
Set the destination dimensions before comparing quality settings. A large image and a small image are not a controlled compression comparison. They carry different amounts of spatial information. If the destination specifies a minimum and a recommendation, label both correctly and decide which you are targeting. Avoid repeatedly switching dimensions while trying to judge a quality slider, because the effects become difficult to separate.
Treat the slider as an instruction
The browser canvas API accepts a quality parameter for encoders that support it. That parameter is not a percentage of original detail retained, an accuracy score or a promise about bytes. Different formats and implementations can interpret it differently. A value that works for a product photograph may be unsuitable for a graphic with fine text, even when the output dimensions are identical.
PNG exports are a separate case in this tool. The browser path is lossless and does not use the JPEG-style quality control as a meaningful compression dial. If a PNG is too large, consider whether the dimensions are necessary, whether an opaque photograph could use another format or whether the destination actually needs a transparent master. Do not promise a smaller PNG simply by moving a control that the encoder ignores.
Read the actual output size
The bytes reported for a completed export belong to that file. They are more useful than a predicted reduction because content matters. Flat backgrounds, texture, noise and edge detail can lead to different results under the same settings. A batch of photographs may therefore produce a range of sizes even when every image uses the same preset.
Our measurement dataset records each sample separately. It includes the browser version, requested format, quality parameter and returned type, along with exact bytes. Unsupported outputs remain unsupported records. This method avoids hiding variation inside a single attractive average. An average can help summarize a set, but it cannot tell you whether the largest or most visually sensitive image is suitable for publication.
Worked example: a fictional size budget
Assume a destination you control has a hypothetical 500,000-byte budget. A first export is 640,000 bytes and a revised export is 448,000 bytes. The saving is (640,000 minus 448,000) divided by 640,000, or 30%. These are illustrative inputs, not measurements from our photo benchmark and not a platform rule. The revised file meets that hypothetical budget, but it still needs visual inspection.
If the revision blurred a serial number that buyers need to read, it is not acceptable just because it meets the budget. Try returning to the original, removing unused outer space or changing the delivery format if allowed. If the destination genuinely requires detail that cannot fit the chosen budget, change the delivery design or provide a separate detail view. Compression cannot make conflicting requirements disappear.
Inspect content-specific failure points
For products, inspect labels, seams, controls and narrow accessories. For portraits, inspect eyelashes, hair boundaries and smooth skin gradients without confusing texture loss with retouching. For diagrams, inspect small text and colored edges. For a transparent cutout, inspect the alpha boundary against the final background. These checks connect the compression decision to what the viewer actually needs from the image.
Avoid judging every export from the editor canvas alone. The canvas shows the composition before the downloaded file is reopened. Encoding can introduce changes that are not visible in that working preview. Download the candidate and open it in an image viewer or the destination application. Compare it with the reference using the same display scale and background so that the viewing setup does not hide the difference.
Separate compression from other edits
Resizing changes the sampling grid. Cropping removes part of the picture. Background removal changes the alpha mask. Compression changes the stored representation of the resulting raster. These operations may all reduce a file, but they solve different problems and can fail in different ways. A smaller file after cropping is not evidence that a particular codec became more efficient.
For a controlled test, finish the composition first. Keep the same crop, output dimensions and background while changing only the format or quality request. Once you have selected a useful export, record those settings with the source. If you later change the image content, repeat the check rather than assuming the previous file-size result will carry over unchanged.
Build a repeatable review loop
Use a representative sample before processing an entire folder. Include the kind of fine detail that is hardest to preserve, rather than selecting only the cleanest photograph. Set an acceptable visual threshold and check whether the chosen settings consistently meet it. A default can save time, but it should be a starting point with a known review process.
When an upload fails, read the actual error. The cause may be dimensions, file type, a damaged download or a destination-specific content rule rather than file size. Verify the exported dimensions and format before lowering quality again. Repeatedly degrading a file cannot fix an unsupported extension or a required aspect ratio. The compressor is one part of preparation, not a universal remedy for every uploader message.
Put this method into practice: open the relevant local image tool →. Keep your original and inspect the exported copy.
Questions that come up
Does quality 80 mean 80% of the detail remains?
No. The quality value is an encoder request. It does not measure preserved detail or establish an equivalent setting across formats.
Why can the compressed file get bigger?
The source may already be efficiently compressed, or the new format and settings may be less compact for that content. Measure the returned file.
Should I inspect the download?
Yes. The working canvas is a composition preview. Reopen the exported file to assess the effects of its actual encoding.
Sources & method
Last checked: . Official rules can change. Calculated presets are identified separately.
- HTMLCanvasElement.toBlob. MDN Web Docs. Checked 2026-10-29.
- Image file type and format guide. MDN Web Docs. Checked 2026-10-29.
- Browser format measurements. Backdropless. Checked 2026-10-29.
- Published tool specifications. Backdropless. Checked 2026-10-29.