Add watermarks to images

View as MarkdownMarkdown

Set up your AI agent

Give your coding agent live access to the GroupDocs documentation and API reference through the GroupDocs Docs MCP server — no install, no API key. Learn more

claude mcp add --transport http groupdocs-docs https://docs.groupdocs.com/mcp

Also process documents locally

The GroupDocs.Watermark MCP server lets your agent work with files on your machine; they are never uploaded. It needs the .NET 10 SDK or Docker.

claude mcp add groupdocs-watermark -- dnx GroupDocs.Watermark.Mcp --yes
Folders, licensing and more →

Add watermark to photos or multi-framed images

When you are working with an animated GIF or multi-frame TIFF images, you may want to add watermark to some particular frame(s) using the property FrameIndex of TiffImageWatermarkOptions or GifImageWatermarkOptions.

AdvancedUsage.AddingWatermarks.AddWatermarksToImages.AddWatermarkToImage

TiffImageLoadOptions loadOptions = new TiffImageLoadOptions();
// Specify an absolute or relative path to your image. Ex: @"C:\Docs\image.tiff"
using (Watermarker watermarker = new Watermarker("image.tiff", loadOptions))
{
    // Initialize text or image watermark
    TextWatermark watermark = new TextWatermark("Test watermark", new Font("Arial", 19));

    // Add watermark to the first frame
    TiffImageWatermarkOptions options = new TiffImageWatermarkOptions();
    options.FrameIndex = 0;

    watermarker.Add(watermark, options);
    watermarker.Save("image.tiff");
}

Advanced use cases