GroupDocs.Watermark for .NET 24.9 Release Notes

The release of GroupDocs.Watermark version 24.9 contains a new feature

Full list of changes in this release

KeyCategorySummary
#WATERMARKNET-1841★ FeatureSaving information about added watermarks in the Image metadata

Major Features

Saving information about added watermarks in the Image metadata

🌐 The new feature allows users to embed watermark information directly into the metadata of raster images. This capability helps users keep track of image modifications and ensures that watermark data is preserved even if the visual content is redistributed or altered.

using (Watermarker watermarker = new Watermarker("test.jpg",))
{
    // Add text watermark
    TextWatermark textWatermark = new TextWatermark("This is a annotation watermark", new Font("Arial", 8));

    // Enabling saving results in the documents metadata
    watermark.SaveResultInMetadata = true;
    textWatermark.HorizontalAlignment = HorizontalAlignment.Left;
    textWatermark.VerticalAlignment = VerticalAlignment.Top;
    watermarker.Add(textWatermark);

    watermarker.Save(outputFileName);
}