<CldImage />
The CldImage
component is the main way of displaying a Cloudinary image in your Svelte app.
Basic Usage
The required props are width
, height
, src
, and alt
:
Transformations
You can use Cloudinary transformations with simple props which are fully typed:
Using Cloudinary URLs
We support passing a Cloudinary URL as the src
as long as it contains a version number (/v1234
).
Preserve Transformations
If you’re using the full Cloudinary URL as your src
it might contain transformations. To preserve these transformations you can set the preserveTransformations
prop.