
An image compression comparison can be wrong even when every file size in the table is real. One tool may resize a photograph, another may convert it to AVIF, and a third may preserve the original dimensions and JPEG format. Calling the smallest output “the best compressor” confuses different operations. A useful test tells the reader exactly what was held constant and which differences remain.
This guide is a repeatable protocol for website owners and developers. It does not provide a performance ranking for ANK Image Lab or its competitors. Use the ANK Image Lab compressor as one candidate if it fits your workflow, and enter its measured outputs in the same table as every other tool. Keep the original files so another person can repeat the experiment.
Decide what the test answers
Write the question in one sentence. “Which service makes this JPEG smaller at acceptable product-page quality?” is a different question from “Which service produces the lightest deliverable image for a mobile card?” In the second case, resizing and format conversion are part of the task. In the first, they would change the experiment. A result should answer the question you actually asked.
Choose a use case before collecting tools. A photographer might care about skin texture and color. A retailer might care about fabric, labels and zoom views. A developer might care about a predictable API response and retries. If you combine all those into one unexplained score, the ranking will be hard to trust and nearly impossible to apply.
Build a small but varied source set
Use several original files with permission to test and publish the results. Include a natural photograph, a product image with fine detail, a screenshot with text, a transparent graphic and a smooth gradient. Avoid a single “hero” file: compressors respond differently to noise, large flat areas, edges and alpha transparency. Save the originals in a read-only folder and record a checksum for each so that you know every service received the same source.
Before uploading, record format, pixel dimensions, byte size and color profile. Strip or retain metadata consistently, depending on the question. If one file contains camera metadata and another does not, a size difference may partly reflect that metadata rather than image coding. Never silently replace a source after seeing an unfavorable result.
Control settings and log exceptions
Pick a comparable quality target. If all tools offer a lossless mode, test that mode separately. If they expose a quality slider, record the chosen setting, but do not assume that the same number means the same visual quality across encoders. For services with automatic settings, label the mode “automatic” and assess the visual output independently. If a tool cannot preserve dimensions or the source format, leave it in a separate conversion category instead of forcing it into a like-for-like compression table.
Use a table with one row per source and service. At minimum, keep the test date, source checksum, source format and dimensions, service and mode, output format and dimensions, output bytes, observed visual defects and link to the output file. Add processing time only if you can measure it under comparable conditions. Report failed uploads and unsupported files; excluding them makes a service look more capable than it was in your test.
| Field | What it prevents |
|---|---|
| Source checksum | Accidentally testing different originals |
| Input and output dimensions | Mistaking resize for compression |
| Input and output format | Comparing conversion with same-format encoding |
| Visual notes at display size | Declaring a damaged image a winner |
| Date, mode and settings | Treating a changing service as a fixed algorithm |
Calculate savings without hiding quality
For one file, percentage reduction is (source bytes - output bytes) / source bytes × 100. Use actual downloaded file bytes, not a rounded number from a marketing dashboard. A negative result is possible if the output grows. Do not average percentages from very different files and call that “the typical saving” without showing the distribution; a tiny icon and a large photograph should not necessarily carry equal weight.
Publish both the file-level table and a concise summary. A median can describe the middle case, but it cannot reveal a ruined logo. Separate photographs, screenshots and transparent graphics when the behavior differs. If one tool gives a smaller file but visibly harms a product label, say so. If the output is visually equivalent at display size, that is a useful finding too. You do not need to pretend that a numerical metric alone can decide what a human will publish.
Check the file the site actually serves
A successful download from a compressor is only halfway to a website result. Upload each output to a test page, clear the relevant cache and inspect the Network panel on desktop and mobile. A browser may select another srcset candidate, a CDN may transform the file again, or a stale URL may keep serving an old version. Record the transferred bytes and response format. If the goal is page speed, compare pages under the same test conditions instead of assuming smaller storage bytes must produce a proportional speed gain.
Repeat the test after a new upload if you are considering a plugin or API. The operational question is whether the same settings run again without manual intervention and how failures are handled. Keep the benchmark files and settings with the article so a future update can rerun the method instead of copying old percentages. The most credible comparison makes its limits visible and lets a reader test the same process on their own images.
Try your own images
Start with a few real files, review the visual result, and then scale up to the rest of your site.