Adding Watermark to an image

What does it do?

The Watermark operation will add a provided text watermark to an image with a specified color and font object. Font color also allows you to set the amount of transparency. It also takes the watermark position enum as input which can be between FitToImage and Center.

Example in Java to add text watermark to an image

File input = new File("path\to\file");
File output = new File("path\to\output rotated file");

ImageProcessingOperations operations = new ImageProcessingOperations();
operations.Watermark("Watermark Text", Color, Font, WatermarkPosition);
//you can chain other operations here like scale, blur, etc 


Click here for a full list of Image Processing Operations and more general information on Image processing with JDeli.