Yoast Guide to Image SEO: From File Formats to AI Search Optimization

網站管理員在電腦上檢查圖片 SEO 設定及網頁載入效能

Images do more than make a page more appealing. They also help search engines understand page content and bring extra traffic from Google Images, Google Lens and AI search. Yoast recommends that webmasters, when writing articles or creating product pages, choose high-quality, original images relevant to the content, and avoid adding unrelated images for decoration or to satisfy SEO tools.

Choosing the Right Images and Optimizing Files

Original images are usually more valuable than generic stock photos. Images should be placed near related text so readers and search engines can more easily understand their purpose. If you use images from platforms such as Flickr or Unsplash, check the license terms first and credit the photographer or original author as required.

Image file names should clearly describe the content, for example using “notre-dame-paris-sunrise.jpg” instead of a camera’s default numbered file name. For formats, consider WebP for large photos or illustrations; use PNG when a transparent background is needed; AVIF delivers smaller files while maintaining quality, but provide a WebP or JPEG fallback for browsers that do not support it. SVG is suitable for logos and icons.

Before uploading, resize images to the dimensions they will actually be displayed at on the page, and compress them to reduce file size. Simply displaying a large image at a smaller size does not reduce the traffic needed to download the original file. Using responsive images and srcset lets you serve appropriate versions based on the device’s screen width; also set image width and height so browsers reserve space, reducing layout shifts and improving Core Web Vitals and loading experience.

Supplementing Images with Alt Text and Structured Data

Alt text mainly serves accessibility: when an image cannot be displayed or a reader uses a screen reader, it conveys the core information of the image. Text should accurately describe the image content, and where appropriate can naturally include the page’s keywords, but should not stuff keywords into every image. Purely decorative images can have empty alt text, so readers are not given unnecessary information.

Image titles or captions can help readers scan a page quickly, but should only be used when they aid understanding of the content. For articles, products and other pages, adding appropriate structured data, such as ImageObject or the image property of the relevant content type, can give search engines and AI systems more context about the images, increasing the chance they appear in image search and AI-generated results.

Websites should also consider including images in the XML sitemap and setting Open Graph and Twitter Card image data for social sharing. After optimization, you can check loading speed with Google PageSpeed Insights, WebPageTest or other performance tools; the most important above-the-fold images can be given higher download priority, while images further down the page can be lazy-loaded as needed.

Yoast notes that the core of image SEO is not a single technique, but a combination of relevance, readability, accessibility, file size and loading performance. Getting these fundamentals right helps images be more easily understood and discovered across traditional search, visual search and AI search environments.

Source: Yoast