In this simple and elaborative tutorial, we will learn how to add image watermark to PSD using Java. Adding image watermark to PSD in Java makes it harder for counterfeiters to create an illegal copy of the document.
Steps to Add Image Watermark to PSD using Java
- Install Aspose.PSD for Java from the Maven Repository into your project
- Load the source PSD file using PsdImage class instance
- Load images and add them to PSD layers as watermark
- Save the PSD file with watermark on disk using Java
In the following example, it is very easy to insert watermark to PSD file in Java. You are not dependent on installation of Adobe Photoshop on your system to include image watermark in PSD. You simply need to load source PSD file and add image as watermark in layers of PSD. Finally, you save the PSD with watermark on disk. You may add BMP or JPEG images inside PSD layers as watermark as well using this example.
Code to Add Image Watermark to PSD in Java
In this sample, you learnt how to add image watermark to PSD using Java. Previously we have explored, how to add image watermark to PSD in C#. The sample code can be used with any kind of Java based applications in both Windows or Linux based environments.