Search

Image optimisation for WordPress and WooCommerce – Best practices for SEO and LLMs

Optimal image sizes in WordPress and WooCommerce.

1. Why are images important for SEO and LLMs?

Well, you know what they say, a picture’s worth a thousand words, but only if you use it right.

In the digital world, poorly prepared images can:

  • Slow down your website, damaging your Google ranking.
  • Be ignored by generative AI models (LLMs) due to a lack of context.
  • Be excluded from visual search results.

Images aren’t just for making your website look attractive; they convey information and help with storytelling. If optimised, they can be ‘understood’ by both search engines and LLMs, increasing the chances of them being used as a reference or inspiration by these technologies.

2. Guide for image optimisation for WordPress and WooCommerce

2.1 For any type of website:

  • Full-width headers and sliders: 1920 x 1080 px (16:9 format) – a good resolution that is compatible with most screens.
    For more panoramic layouts, 2000 x 600 px is a good option.
  • Featured images: 1200 x 675 px — this maintains a balance between detail and performance.
  • Images within articles: 800–1200 px wide.
  • Thumbnails: 150 x 150 px (square).

2.2 Ideal image sizes in WordPress

You should always bear in mind the ideal image sizes in WordPress.

WordPress automatically generates several sizes when you upload an image:

Default sizeSize
Thumbnail150 × 150 px
MediumMáx. 300 × 300 px
Medium LargeLargura: 768 px
LargeMáx. 1024 × 1024 px
Full SizeOriginal

Best practices:

  • Featured images: 1200 x 675 px.
  • Two-column layout: 680 x 382 px.
  • Square images for highlights: 600 x 600 px.
  • Logo: ~300 x 200 px (depending on the theme).
  • Banners: 1920 x 1080 px.

2.3 In WooCommerce:

  • Catalogue (thumbnail): 324 x 324 px.
  • Main product image: 800 x 800 px, or up to 1200 px for detailed zoom.
  • Products with high levels of detail should be up to 2000 px, but compressed so that they do not slow down loading times.

You can find more information on the WooCommerce website.

2.4 Recommended best image sizes and formats for websites, WordPress and WooCommerce

Recommended image sizes and formats for Websites, WordPress, and WooCommerce
Context / LocationRecommended dimensions (px)Best formatTarget weightNotes (SEO & LLMs)
Header / Full‑width slider1920×1080 (16:9) • alt: 2000×600 panoramicWebP or JPEG (q. 75–85)< 300 KBUse loading="lazy" for subsequent slides. Add nearby text context; ALT aligned with page topic.
Banner / Background1920×1080 (cover)WebP / JPEG< 250 KBAvoid embedding text in the image; prefer HTML text for SEO/LLMs.
Featured image (post)1200×675 (16:9)WebP / JPEG< 200 KBDescriptive file name + ALT with article topic; reinforce context in opening paragraph.
In‑content image (1 column)800–1200 widthWebP / JPEG< 150 KBWordPress auto‑generates srcset; use captions when they add meaning.
In‑content image (2 columns)600–800 widthWebP / JPEG/PNG< 120 KBFor charts/icons use PNG or SVG (when possible) for crisp edges.
Thumbnails150×150 (WP default)WebP / JPEG/PNG< 30 KBRegenerate thumbnails after changing theme sizes.
Logo~300×200 (theme‑dependent)SVG (preferred) or PNG< 50 KBALT like “brand name — logo”.
WooCommerce — Catalog (thumbnail)324×324, squareWebP / JPEG< 80 KBClean background, consistent angle; file name with product + attribute.
WooCommerce — Main product image800×800 (standard) • up to 1200–1600 for zoomWebP / JPEG< 250 KBDetailed ALT: type, material, colour, model. Add descriptive text nearby for LLM context.
WooCommerce — Product gallery1000–1200 widthWebP / JPEG< 180 KB eachShow angles/in‑use. Short captions with benefits (“inner pocket”, “reinforced stitching”).
Open Graph / Social share1200×630 (FB/LinkedIn) • 1080×1080 (IG)JPEG / WebP< 300 KBSet OG meta tags; keep title/description consistent with the post.
Quick tips: prefer WebP when supported; keep most images under 150–250 KB; use descriptive alt text, clear file names, and nearby paragraph context to improve SEO and LLM discovery.

3. Image formats

Choosing the right format is one of the most important steps in optimising images for the web.

Each format has advantages and disadvantages that affect visual quality, file size and website loading speed.

In this section, we’ll look at the best image formats for websites and online stores, explaining when to use each one to get the best balance between quality and performance.

In the comparison below, you can see how each format affects file quality and weight, helping you choose the best image formats for websites and online stores.

Melhores formatos de imagem para sites e lojas online.
Comparison between JPEG, PNG, WebP and AVIF on the same product, with differences in weight and quality.

These are the best image formats for websites and online stores:

  • JPEG: ideal for photographs and complex images.
  • PNG: perfect for graphics, logos and transparencies.
  • WebP: lighter and with excellent quality; recommended for most cases.
  • AVIF: even more efficient than WebP, but with limited support.

4. Compression and performance

Optimising images is crucial for SEO and for LLMs to consider them relevant, as these models value fast-loading, well-structured content. When doing image optimisation for WordPress and WooCommerce, compression plays a central role, reducing file size without compromising too much on quality.

Use tools such as TinyPNG, Squoosh.app or plugins such as Smush or Imagify. Keep most images under 150 KB (unless more detail is required) and save them in 72 DPI web resolution (300 DPI for print only). Enable lazy loading in WordPress to load images only when needed.

The following chart illustrates how compression directly influences website size and loading speed, which are essential factors in image optimisation for WordPress and WooCommerce.

The impact of compression on image optimisation for WordPress and WooCommerce.
Chart: impact of compression on website size and loading speed.

5. Adaptability and devices

  • Prepare responsive images for different screen sizes (WordPress already creates automatic versions with srcset).
  • Use background-size: cover or object-fit: cover in CSS so that images adapt well to different resolutions.
  • Test on desktop, tablet and mobile to ensure readability.

6. SEO optimisation

SEO optimisation is very important, and today, writing alt text and metadata for SEO and LLMs has become essential for images to be correctly interpreted by search engines and AI models.

Here is a real example in the WordPress dashboard showing how to write alt text and metadata for SEO and LLMs, ensuring that images are correctly interpreted.

How to write alt text and metadata for SEO and LLMs in WordPress.
Image editing panel in WordPress with alt text and description fields filled in.
  • File name: descriptive and with keywords (‘brown-leather-shoes.jpg’ instead of ‘IMG_1234.jpg’).
  • Alternative text (alt text): describes the image in detail, including context.
  • Title: optional, but can reinforce relevance.
  • Caption: if useful, add extra context.
  • Description: allows you to include additional information for SEO and accessibility.

7. Optimisation for discovery by LLMs

LLMs do not ‘see’ images directly; they read and interpret the text surrounding them and the metadata.
To increase the likelihood that images will be used or understood by AI models:

  1. Context in adjacent text
    • Include a detailed description in the paragraph where the image appears.
    • Relate the image to the central topic of the article.
  2. Rich metadata
    • Add information in the ‘Description’ field in WordPress, explaining the content of the image.
    • Include terms that describe the action, setting, object, and intent of the image.
  3. Clear semantic structure
    • Use headings (H2/H3) near the image that reinforce the theme.
    • Maintain consistency between title, text, and image.
  4. Structured data
    • Implement schema.org (ImageObject) with:
      • contentUrl (image URL)
      • description (detailed description)
      • author or creator
      • license (if applicable)
    • This helps not only Google but also LLMs to associate context.
  5. Explicit licensing
    • Indicate whether the image is original, stock or free to use.
    • LLMs tend to prefer content with clear licensing.
  6. Thematic consistency
    • Avoid generic images that are disconnected from the text; the more relevant it is to the theme, the more likely it is to be ‘understood’ and indexed correctly.

8. Practical example: Image optimisation for SEO and LLMs

Imagine you have a craft coffee shop. Let’s see how to write alt text and metadata for SEO and LLMs.

  1. You take a photo of a packet of coffee beans.
  2. You edit it to 1200 × 800 px, JPEG format.
  3. You compress it to ~140 KB.
  4. File name: ‘artisan-coffee-beans-colombia.jpg’.
  5. Alt text: ‘Pack of Colombian artisan coffee beans next to a light wood table.’
  6. In the adjacent text: ‘Our Colombian artisan coffee is roasted weekly and packaged in 250 g packs to keep the aroma fresh.’
  7. Structured data (ImageObject) in HTML with author, date, and description.
  8. Creative Commons licence indicated in the caption.

This way, search engines and LLMs will have all the clues they need to understand what is in the image and when it should be referenced.

Now see how these practices apply to a product page, with alt text and complete metadata for SEO and LLMs

Optimised product page with alt text and metadata.
Optimised product page with alt text, metadata and detailed description.

9. Quick summary

ObjectiveWhat to do
Classic SEOName + alt text + compression + responsiveness
Discovery by LLMsContext in text + metadata + schema.org
SpeedWebP + compression + lazy loading
User experienceAppropriate size + adaptation to different screens

10. Conclusion

Image management on a website, whether on WordPress or WooCommerce, isn’t just about aesthetics — it’s strategic.

When you think of images as informative content, you can improve your SEO and increase the chances that search engines and generative AI models will recognise and use your content as a reference.

If you apply these practices for image optimisation for WordPress and WooCommerce consistently, your images will no longer be just ‘pretty’ — they will become valuable.

FAQs

  • Do LLMs read images directly?

    No, they interpret the text and associated metadata.

  • Is it always worth using WebP?

    Yes, when possible — it improves performance without losing quality.

  • Does alt text really help with LLMs?

    Yes, it is one of the elements that reinforces context for AI and SEO.

  • Is Schema.org mandatory?

    No, but it greatly increases the clarity and understanding of images.

  • What if I use stock images?

    You can use them, but always indicate the source and licence for credibility.

Share:
What you can read
More Articles
I want to send you a message

We don't send spam! Read our privacy policy for more information.

Author
Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.