Skip to content

getCldImageUrl

You can use the getCldOgImageUrl helper to get a Cloudinary image URL outside the component. <CldOgImage /> uses this helper under the hood, so it has all the same props.

Basic Usage

The only required option is src:

import { getCldOgImageUrl } from 'svelte-cloudinary';
const url = getCldOgImageUrl({
src: 'images/turtle',
})