Design an image SEO policy: formats, lazy load hints, alt text governance, and sitemaps.
Assistant
The user wants an "Image SEO Policy".
This implies a structured set of guidelines and rules for managing images on a website to maximize search engine visibility and user accessibility.
The user specifically requested four key components:
Formats: Which file types to use (WebP, JPEG, PNG, SVG, AVIF) and why.
Lazy Load Hints: How to implement lazy loading correctly without hurting SEO.
Alt Text Governance: Rules for writing and managing alternative text (accessibility + keywords).
Sitemaps: How to include images in XML sitemaps.
I should structure this response as a formal policy document or a comprehensive guide that a web team (developers, content editors, SEOs) could actually use.
Placeholder strategies (LQIP/SQIP) for CLS mitigation.
Alt Text Governance (Content Strategy):
The "Why".
Formula for writing good alt text.
Decorative vs. Informative images.
Structured Data & Sitemaps (Discovery):
Image sitemaps syntax.
Schema.org usage (e.g., ImageObject).
File Naming Conventions:
Slugs, keywords, hygiene.
Enforcement/Audit Schedule: How to make sure people follow this.
Fleshing out the details (Self-Correction/Refinement during drafting):
Formats: Don't just say "use WebP". Acknowledge that fallbacks are needed for older browsers (though most support WebP now). Mention AVIF as the future. Mention SVG for icons/logos. Crucial point: File size limits.
Lazy Load: This is tricky. If you lazy load the hero image, it hurts LCP (Largest Contentful Paint). The policy needs to explicitly ban lazy loading for "above the fold" content. I should mention the fetchpriority="high" attribute for hero images.
Alt Text: This needs a "Governance" angle. It's not just "write good text." It's about who is responsible. Is it the content team? Is there a character limit? How do we handle complex images (charts)?
Sitemaps: Google finds images easily, but sitemaps help deep content. I need to provide the XML example structure.
Naming: Often overlooked. IMG_1234.jpg is bad. red-leather-sofa.jpg is good.
Formatting the Output:
Use bold headings, bullet points, and code snippets where applicable to make it readable and actionable. A "Policy" tone should be authoritative but helpful.
Refining the "Lazy Load Hints" section:
The user asked for "Lazy load hints." I should explain the HTML attributes (loading="lazy") versus JavaScript libraries (which are becoming less necessary thanks to native browser support). I should also touch upon the sizes attribute as a "hint" for resource selection.
Refining the "Alt Text Governance":
I'll create a "Decision Matrix" or "Best Practices List."
Contextual keywords (don't keyword stuff).
Character limits (125-150 chars).
Decorative images (alt="").
Refining "Sitemaps":
Show the <image:image> tag structure. Explain that you can list the image inside the page tag in the sitemap.
Final Review of the Plan:
Does it cover formats? Yes. Lazy load? Yes. Alt text? Yes. Sitemaps? Yes.
Is it an "SEO Policy"? Yes, it sets rules.
Let's write it.
This is a comprehensive Image SEO Policy framework designed for implementation by development, content, and marketing teams. It covers the technical specifications, content governance, and discovery protocols required to maximize image search visibility and Core Web Vitals.
Image SEO & Performance Policy
Objective: To ensure all digital images are fully optimized for search engine crawling, indexing, and ranking, while maintaining optimal page load speeds (Core Web Vitals) and adhering to accessibility standards (WCAG).
Policy: All images must be served in modern, high-efficiency formats with aggressive compression to minimize payload without perceptible quality loss.
A. Allowed Formats (Priority Order)
AVIF: The preferred format for photographic and complex images due to superior compression (50% smaller than WebP).
WebP: The standard fallback for all browsers. Use for all images if AVIF is not technically feasible.
SVG: Mandatory for all logos, icons, and simple illustrations. Ensure viewbox is set correctly for responsiveness.
JPEG/PNG:Legacy Only. Do not use these formats unless strictly necessary for backward compatibility. They must be served via a <picture> element fallback, not as the primary source.
B. Compression Standards
Lossy Compression: Acceptable for most web imagery. Target quality setting: 75-80%.
Lossless Compression: Reserved for technical diagrams, screenshots containing text, or medical imagery.
File Size Cap: No single image file (non-hero) shall exceed 100KB. Hero images must not exceed 250KB.
C. Implementation Rule
Use the <picture> tag to serve the correct format to the correct browser browser (e.g., AVIF to Chrome, WebP to Safari, JPEG to legacy Edge/IE).
2. Lazy Loading & Rendering Hints
Policy: Images must be loaded in a way that prioritizes the "Above the Fold" (ATF) content and defers "Below the Fold" (BTF) content to improve Largest Contentful Paint (LCP) scores.
A. Native Lazy Loading
Below the Fold: All images positioned outside the initial viewport must include the loading="lazy" attribute.
Above the Fold (Hero/ATF): Critical images must NOT use lazy loading, as this delays LCP. These images must include loading="eager" or omit the attribute entirely.
Fetch Priority: For the primary LCP image on a page (usually the Hero), add fetchpriority="high" to the <img> tag to signal the browser to download it immediately.
B. Dimensions & Layout Shift (CLS)
Explicit Dimensions: All <img> tags must include explicit width and height attributes.
Aspect Ratio: CSS must be used to preserve the aspect ratio if the image scales, preventing Cumulative Layout Shift (CLS).
Placeholders: Implement LQIP (Low Quality Image Placeholders) or solid background color placeholders in the exact dimensions of the image to prevent jitter during load.
3. Alt Text Governance (Accessibility & Context)
Policy: Every image requires descriptive, context-driven alternative text to assist screen readers and search engine crawlers.