Skip to content

Social Media Cards

Svelte Cloudinary with picture of a mountain
<script>
import { CldImage } from 'svelte-cloudinary';
</script>
<CldOgImage
src="images/white"
twitterTitle="Svelte Cloudinary"
alt="Svelte Cloudinary with picture of a mountain"
overlays={[
{
publicId: `images/mountain`,
position: {
x: 0,
y: 0,
gravity: 'north_east',
},
effects: [
{
crop: 'fill',
gravity: 'auto',
width: '0.33',
height: '1.0',
},
],
flags: ['relative'],
},
{
width: 700,
crop: 'fit',
text: {
color: 'black',
fontFamily: 'Source Sans Pro',
fontSize: 80,
fontWeight: 'bold',
text: 'Next Cloudinary',
},
position: {
x: 80,
y: -50,
gravity: 'west',
},
},
{
width: 700,
crop: 'fit',
text: {
color: 'black',
fontFamily: 'Source Sans Pro',
fontSize: 40,
text: 'Get the power of Cloudinary in a Next.js project with Next Cloudinary!',
},
position: {
x: 80,
y: 50,
gravity: 'west',
},
},
]} />