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:
Learn how to protect your visual content from unauthorized use by adding watermarks to images using Cloudinary's JavaScript SDK. This tutorial demonstrates two approaches: applying image overlays (like logos) and text overlays (like "Preview" or copyright notices) to safeguard your content.
Whether you're building a stock photo website, protecting client proofs, or adding branding to your images, watermarks are an essential tool. Cloudinary's overlay method makes it simple to add, position, and customize watermarks with just a few lines of code.
For more information on overlays, see Placing layers on images.
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:27 |
See how platforms like Unsplash use watermarks to protect premium content. In today's digital age, where sharing and accessing visual content has become effortless, ensuring the protection of your creative work is of paramount importance. Watermarks step in as a reliable solution, establishing content authenticity while discouraging unauthorized distribution. |
|
|
[Jump to this spot in the video]1:07 |
Start by focusing on the image overlay approach. Learn how to use Cloudinary's overlay() method to add an image source from your Cloudinary account. The image is initially set at 300 pixels by 300 pixels for better visibility. See how to attach a source to the overlay method, which can be either an image or text. |
Example code for adding an image overlay watermark:
Example code for adding a text overlay watermark with styling:
|
|
[Jump to this spot in the video]3:03 |
Incorporating watermarks into your images is a breeze using the overlay method from Cloudinary's JavaScript SDK. Use either text or image as the source. For images, provide the path to a chosen Cloudinary asset, resize it, and position it. For text, customize with font weight, color, and add transparency effects. Just like that, you've successfully applied watermarks to protect your visual content. |
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.