We would like to watermark images automatically, after its uploaded to S3. How do we achieve this using a java based library?
Asked
Active
Viewed 760 times
1 Answers
0
The flow should be as follows to watermark images whenever it is uploaded:
- Raw image (without watermark) is uploaded to S3 bucket
- Use S3 events (such as s3:ObjectCreated:* based on your need) to trigger Lambda. Hence, you need to configure S3 event destination as Lambda.
- Lambda shall apply watermark and upload watermarked image
NOTE: If you don't use Lambda, other way is via SQS/SNS as event destination, and your worker shall take request from it and apply watermarking.

Tejaskumar
- 754
- 8
- 24
-
What library should be used for watermarking the image, when the lambda is triggered. – AVM Oct 22 '20 at 09:26
-
Pls refer https://www.codejava.net/java-se/graphics/adding-a-watermark-over-an-image-programmatically-using-java OR old thread https://stackoverflow.com/questions/5459701/how-can-i-watermark-an-image-in-java – Tejaskumar Oct 22 '20 at 14:24
-
1I need watermark library without awt(java.awt.*) – AVM Oct 23 '20 at 11:26