Blog / WordPress /

WooCommerce and WordPress: responsive image sizes

That big, beautiful product photo straight off the camera? On your shopper’s phone, it’s showing at roughly the width of a business card.

And they’re still downloading the whole thing.

Responsive image sizes fix that. They let the browser pick a file that suits the space available, so mobile visitors download less without your products turning fuzzy.

Key takeaways

  • Upload source images with enough detail for the largest intended display.
  • Let the platform generate suitable responsive variants where possible.
  • Check the actual image requested at different screen sizes.

Start with the display size

A product image needs enough pixels for its largest display, but serving that full file to every device wastes bandwidth. WordPress can generate image sizes from an upload, and themes or plugins can use srcset and sizes so browsers choose among them.

The theme’s settings matter a lot here. On WooCommerce sites I look after, it’s often the theme, not the upload, that decides which file a visitor gets. If the product grid displays images at a particular width but the sizes hint describes something much smaller, the browser may choose a file that looks soft. If the hint is too large, visitors may download more than they need.

Keep the crop and quality useful

Product images should show the item clearly and consistently. Use the same aspect ratio within a grid where possible, and avoid forcing a crop that hides important parts. Compression can reduce file weight, but inspect the result for visible artefacts around edges, text or fine detail.

Don’t upload a tiny thumbnail and expect WordPress to magic up a sharp large version. Keep an appropriate original and check which variants WordPress generates. If you change image sizes, thumbnails may need to be regenerated; take care with backups and test before changing a large library.

Verify what the browser loads

Use the browser’s developer tools or a performance test to inspect the selected image URL at desktop and mobile widths. Compare dimensions and file size with the space the image occupies. Also confirm width and height are declared to reduce layout shifts.

Open a product grid on a phone and zoom in on a detail. Is it clear without downloading a desktop-sized original?

Audit the image pipeline before changing it

Start with the published page and inspect the image file the browser actually requests. Compare a product image in a grid, on its own page and at a narrow viewport. The source upload may be large, but the browser could already be choosing an appropriate derivative. Conversely, an optimisation setting can make every image too small or introduce visible artefacts.

WordPress can create multiple image sizes, and themes or plugins determine how they are used. The srcset attribute offers candidate files, while sizes describes the layout width the browser should expect. If the theme says an image occupies less space than it really does, the browser might choose a smaller candidate and upscale it. If the hint is too generous, it might download a heavier file than necessary. Check a few representative templates rather than drawing a conclusion from one URL.

Product photography has a commercial job as well as a performance cost. A crop that removes a label, connector or important detail can make the image lighter but the page less useful. Keep a consistent aspect ratio where the design calls for it, and make sure a zoom or gallery view still has enough detail for the customer to inspect the item.

Resize and compress with a purpose

Keep an original master where the workflow allows it, then generate web-sized files appropriate to the largest display. Avoid uploading an enormous camera file when it will never be shown at that size. Compression should reduce unnecessary bytes without making text, edges or textures look poor. Review the result at the size visitors see, not only in a file manager.

A practical test is to compare the visual quality and downloaded file across common viewport widths. Use browser developer tools or a performance audit to see which source was selected. Repeat with a slower connection if possible, because a file that feels instant on a fast office network may be frustrating elsewhere. Don’t treat a single score as the whole user experience. I’d always trust what I can see on a real phone over one number.

Check that image dimensions are declared so the browser can reserve space, and add useful alternative text when an image conveys information. Decorative images can have empty alternative text where appropriate. Alt text is not a place to repeat keywords; describe what helps someone understand the product or the image’s role.

Watch for plugin and theme conflicts

Image optimisation plugins may resize, convert or lazy-load files. A theme may request custom thumbnails, and a CDN may serve a separate variant. Changing several layers at once makes it difficult to diagnose a soft image or a loading issue. Record the original setting, test a small sample and verify that the change reaches the front end before applying it widely.

After a theme update, image settings may behave differently. Review category cards, product detail galleries and any featured product module. A site can look correct in the admin preview while the live template uses another size. Keep a simple note of the intended image dimensions and who owns the optimisation setting. Which page type is currently sending more image data than its design actually needs?

Check below the fold as well

An image may be resized correctly in the main product gallery while related-product cards still use the original upload. Inspect the full page, including recommendations and category grids. Lazy loading can delay images below the fold, but it should not prevent a visitor from seeing them when they scroll. Check for placeholders that remain visible or images that jump into place and disrupt the layout.

Keep a before-and-after sample of the same product on a few page types. This makes review concrete and helps a designer decide whether the new crop still communicates the item’s shape, colour and details. If a compression change looks worse at normal size, the saved bytes may not be worth it.

Your next step takes ten minutes. Open one product page on mobile and desktop, check which image file the browser actually picked, and compare quality and weight. Which template is sending more image than its layout needs?