
Open a product page on a phone and three images may fail in three different ways: a jacket photo takes too long to appear, the transparent logo has a pale outline, and the size chart is hard to read. Changing every file to the same format will not solve all three. The useful question is what each image needs to show, and where it will be seen.
Photographs
For a photograph, look at details that a buyer would notice: stitching, hair, fine leaves, or a smooth wall behind the subject. Export a JPEG and a WebP at the same pixel dimensions. If the page serves responsive images, compare the actual files requested on a phone and on a large screen; the file sitting in your media library may not be the one visitors receive.
WebP can be smaller than JPEG at a similar visible quality, but that is a reason to test it, not a guaranteed result for every photo. Open both versions at the size used on the page, then zoom in on the areas that matter. A tiny file is a poor bargain if it turns a fabric texture into a smear.
AVIF is another candidate for delivery. Before rolling it out, compare the exported versions and check your browser support and fallback path. Keep the editable original separate from the version sent to visitors.
Graphics and transparency
A screenshot or logo exposes different flaws. Thin letters and straight edges make even a small blur obvious. PNG is a useful source for this kind of graphic, especially when you need transparency. A transparent WebP or AVIF may work for delivery, but inspect the result rather than assuming that a conversion is harmless.
Try a logo on both the light and dark backgrounds used by your site. A pale fringe can disappear on white and stand out on charcoal. For a size chart, read the smallest label at its real display size. If that label is no longer legible, the saved bytes have cost the page its purpose.
Keep the master artwork. You can review quality and edge artifacts in each exported version, while preserving a clean source for later edits.
A quick format guide
- PhotosStart with JPEG and WebP at identical pixel dimensions.
- GraphicsCompare PNG and WebP, especially text and transparent edges.
- Newer formatsCheck browser support and keep a compatible fallback.
JPEG XL
JPEG XL is worth knowing about, but a good compression result in an export tool is only half the decision. The browsers used by visitors and the software used by your editors must be able to handle the file you plan to publish.
Test the complete path: export, upload, CDN delivery, browser display, and later editing. If one step is uncertain, keep a compatible fallback. Do not delete the only master because a new format looked promising in one comparison.
Formats worth comparing
- JPEG
- A compatible photo format when its size and quality are suitable.
- PNG
- A useful source for diagrams, text and transparent graphics.
- WebP / AVIF
- Compare with the source on a real page, not by bytes alone.
- JPEG XL
- Use after checking support in your delivery and editing workflow.
Choose from real results
Make a small test set instead of converting the whole library. One product photograph, one transparent mark, and one image containing text will expose more useful differences than three nearly identical photos. Give each candidate the same pixel dimensions before you compare file sizes.
Dimensions may matter more than the format choice. A 3,000-pixel source displayed in a 300-pixel card is still excessive after efficient compression. Produce a size that fits the card, then use the browser network panel to see which version is actually transferred. Repeat on a phone and a desktop screen.
Choose the version that remains clear in its real setting while avoiding unnecessary bytes. If the result is ambiguous, keep the simpler compatible option and revisit it when you have representative images or better delivery data.
A practical example
Suppose a store has a wide campaign banner and a small size chart beside a product. For the banner, test JPEG and WebP at the banner’s display width, watching gradients and fabric detail. For the chart, start from a clean PNG and check every label after export. Both assets belong on the same page, but they do not need the same compression rule.
Before you publish
- Compare file sizes at the same pixel dimensions.
- Inspect the result on a phone and a large display.
- Check support in your visitors’ browsers and your editing workflow.
Explore more
Check the result on your own website and keep an original when you may need to restore it.