Skip to content

Configuring getCldOgImageUrl

The getCldOgImageUrl helper provides a wide range of options for being able to easily generate social cards for Open Graph images.

Configuration for getCldOgImageUrl is the same as getCldImageUrl. The only difference is getCldOgImageUrl provides the following default settings to make generating an OG image URL simpler.

Required Props

Prop Type Required Example
src stringYesmy-public-id

Basic Transformations

Prop Type Default Example
crop string{ type: 'fill', gravity: 'center', source: true }scaleMore Info
height number627627More Info
width number12001200More Info

Find more configuration settings over at getCldImageUrl configuration.