Last updated: Aug-06-2025
OverviewThis video tutorial teaches you how to optimize and transform the images you deliver in a Svelte app by using the CldImage
component of the Svelte community-developed library.
You can find the code from this tutorial in
GitHub.
Tutorial contentsThis tutorial presents the following topics. Click a timestamp to jump to that part of the video.
Introduction   0:00 You can display Cloudinary-hosted images on your website using HTML, or you can use theCldImage
component from the Svelte community-developed library for simplified access to Cloudinary's transformation and optimization features. Deliver an image using an the Cloudinary CldImage component   0:31 Once Svelte Cloudinary is installed, import the CldImage
component into your project and replace your existing image tag with CldImage
. In addition, instead of referencing the entire delivery URL, just specify the public ID. Automatically optimize your images   0:59 When using the CldImage
component, your images are delivered with f_auto
and q_auto
by default. This means they're automatically delivered in the best format for the requesting browser and compressed for optimal performance while maintaining visual quality. Format your image as a square   1:17 You can crop an image to a height and width of 600 pixels with the fill crop mode, to format your image as a square. Automatically focus on the most important part of the image   1:34 Use the AI-based gravity="auto"
property to ensure that all cropped images center on the essential area, avoiding any unwanted cuts. Apply any transformation using the CldImage
component   1:41 The CldImage
component provides access to all Cloudinary transformations, such as special effects, text and image overlays, and more. Keep learning If you like this, you might also like...
Â
Â
Check out the Cloudinary Academy for free self-paced Cloudinary courses on a variety of developer or DAM topics, or register for formal instructor-led courses, either virtual or on-site.
Â
âï¸ Feedback sent!
âï¸Â  ErrorUnfortunately there's been an error sending your feedback.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4