image-optimization-cdn

Resize and convert e-commerce product images to WebP/AVIF for CDN delivery.

44|7|Updated Mar 12, 2026
One-click install
npx skills add https://github.com/finsilabs/awesome-ecommerce-skills --skill image-optimization-cdn
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: image-optimization-cdn
Source: https://github.com/finsilabs/awesome-ecommerce-skills/tree/main/skills/infrastructure-performance/image-optimization-cdn
Command: npx skills add https://github.com/finsilabs/awesome-ecommerce-skills --skill image-optimization-cdn

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill addresses slow e-commerce storefronts caused by unoptimized product images, which are often the largest assets and negatively impact user experience and Core Web Vitals.

Core Features & Use Cases

  • Automated Image Resizing & Conversion: Automatically resizes images to required dimensions and converts them to modern formats like WebP and AVIF for smaller file sizes.
  • CDN Delivery & Lazy Loading: Serves images from a Content Delivery Network (CDN) close to the user and implements lazy loading for images below the fold.
  • Use Case: Improve your store's Largest Contentful Paint (LCP) score and overall page load speed by ensuring all product images are efficiently delivered.

Quick Start

Implement the image optimization CDN skill for your Shopify store by using the img_url filter with size parameters and adding loading="lazy" to below-fold images.

Frequently Asked Questions about image-optimization-cdn

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I optimize product images to improve Largest Contentful Paint (LCP) on my e-commerce storefront?

To improve Largest Contentful Paint (LCP), you can optimize product images by automatically resizing them, converting them to WebP or AVIF formats, and serving them via a CDN to reduce file sizes and load times.

What's the best way to convert Shopify product images to WebP and enable lazy loading?

The best way to convert Shopify product images to WebP and enable lazy loading is by using the `img_url` filter with size parameters for resizing and adding `loading="lazy"` attributes to below-fold images.

Does this image optimization pipeline work with WooCommerce, BigCommerce, and custom headless setups?

Yes, this image optimization pipeline works across platforms including Shopify, WooCommerce, and BigCommerce, as well as custom headless setups, ensuring efficient CDN delivery and modern format conversion.

Why does converting images to modern formats like AVIF and WebP reduce page load speed issues?

Converting images to modern formats like AVIF and WebP reduces page load speed issues because these formats provide significantly smaller file sizes compared to traditional formats, directly addressing Core Web Vitals metrics.

When do I need to use a Content Delivery Network (CDN) for e-commerce image delivery?

You need to use a Content Delivery Network (CDN) for e-commerce image delivery when unoptimized product images are slowing down your storefront, allowing assets to be served from locations closest to the user.

How do I implement lazy loading for below-fold product images on my storefront?

You implement lazy loading for below-fold product images by adding the `loading="lazy"` attribute to image tags, which delays loading these assets until the user scrolls near them, improving initial page speed.