Class JpegWatermarker

  • All Implemented Interfaces:
    Watermarker

    public class JpegWatermarker
    extends AbstractWatermarker
    Adds a watermark to JPEG image by adding an exif metadata. This trivial impl load the image in memory so don't use it on big pictures. This is for testing purpose only.
    Since:
    10.2
    • Constructor Detail

      • JpegWatermarker

        public JpegWatermarker()
    • Method Detail

      • addWatermark

        public Path addWatermark​(Path inputFile,
                                 Path outputDir,
                                 String watermark)
        Description copied from interface: Watermarker
        Creates a new file based on the input file by adding a watermark
        Parameters:
        inputFile - the source file
        outputDir - the directory to write the output file
        watermark - the watermark string to use
        Returns:
        the path of the watermarked file