Optimizing Images in Svelte/SvelteKit

Automatically optimize images using the CldImage component. By default, CldImage opts you in to automatic optimization including delivering the most optimal format for the browser (WebP, AVIF).

You can further optimize delivery by using responsive sizing by using the sizes prop.

Example

Turtle

Watch & Learn

View on YouTube

Learn More


MIT 2023 ©