Copy for LLM
Download Markdown
Get Started
Get Started with Cloudinary
Paste one prompt into your AI coding assistant and it sets up Cloudinary for you: installs the SDK, configures skills and MCP servers, and validates your setup.
Copy Prompt
Agent Skills
Install Cloudinary Agent Skills
Cloudinary agent skills give your AI coding assistant first-class context for working with Cloudinary.
Run to install or update the skills:
Display placeholders as a fallback when images fail to load using the JavaScript SDK.
This video is brought to you by Cloudinary's video player - embed your own!
Use the controls to set the playback speed, navigate to chapters of interest and select subtitles in your preferred language.
This tutorial presents the following topics. Click a timestamp to jump to that part of the video.
|
|
[Jump to this spot in the video]0:25 |
Instead of showing broken image links, Cloudinary lets you use image placeholders. If you're managing images at scale with Cloudinary, you're likely uploading them programmatically via an upload pipeline and referencing them by public ID. If something breaks during that upload process, you could be left with broken image links on your site. Fortunately, Cloudinary offers a defaultImage parameter to serve a backup image instead. |
|
|
|
|
[Jump to this spot in the video]1:32 |
When one of the image IDs in the list doesnt exist in your Cloudinary Media Library (for example, when changing the image public ID from c to see) the image fails to load, resulting in a broken image. This creates a poor user experience. Fortunately, Cloudinary allows you to configure a default image that's delivered automatically in such cases, ensuring your layout remains visually consistent and user-friendly. |
|
|
Check out the Cloudinary Academy for free self-paced Cloudinary courses on a variety of developer or DAM topics, or register for formal instructor-led courses, either virtual or on-site.