Class JpegWatermarker
java.lang.Object
org.nuxeo.importer.stream.consumer.watermarker.AbstractWatermarker
org.nuxeo.importer.stream.consumer.watermarker.JpegWatermarker
- All Implemented Interfaces:
Watermarker
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 Summary
-
Method Summary
Modifier and TypeMethodDescriptionaddWatermark
(Path inputFile, Path outputDir, String watermark) Creates a new file based on the input file by adding a watermarkMethods inherited from class org.nuxeo.importer.stream.consumer.watermarker.AbstractWatermarker
getOutputPath
-
Constructor Details
-
JpegWatermarker
public JpegWatermarker()
-
-
Method Details
-
addWatermark
Description copied from interface:Watermarker
Creates a new file based on the input file by adding a watermark- Parameters:
inputFile
- the source fileoutputDir
- the directory to write the output filewatermark
- the watermark string to use- Returns:
- the path of the watermarked file
-