Next Cloudinary v6 now available! View Changelog

getCldOgImageUrl
Basic Usage

Getting Started with getCldOgImageUrl

The getCldOgImageUrl function helps you easily generate Social Card image URLs (Open Graph Images) using Cloudinary.

This URL can be then used when defining metadata for your page within Next.js.

Working inside of the Pages router? Check out the CldOgImage component.

Basic Usage

getCldOgImageUrl makes it convenient to create Social Card URLs out-of-the-box.

The only needed prop is src: