Add Text Watermark to PSD via Java
Build your own Java apps to watermark PSD files using server-side APIs.
How to Watermark PSD File Using Java
In order to watermark PSD file, we’ll use
API which is a feature-rich, powerful and easy to use watermarking API for Java platform. You can download its latest version directly from
and install it within your Maven-based project by adding the following configurations to the pom.xml.
Repository
<repository>
<id>AsposeJavaAPI</id>
<name>Aspose Java API</name>
<url>https://repository.aspose.com/repo/</url>
</repository>
Dependency
<dependency>
<groupId>com.aspose</groupId>
<artifactId>aspose-psd</artifactId>
<version>version of aspose-psd API</version>
<classifier>jdk17</classifier>
</dependency>
Steps to Add Watermark to PSD via Java
- Load PSD with Image.Load method. Cast it into a PsdImage
- Create an instance of Graphics from the image.
- Define & set Font, Brush and Format for watermark text
- Draw watermark using drawString(…) function
- Save image to disc
System Requirements
Aspose.PSD for Java supports on all major platforms and Operating Systems. Please make sure that you have the following prerequisites.
Add Watermark to PSD - Java
About Aspose.PSD for Java API
Aspose.PSD is a Photoshop format manipulation API. One can generate, modify and convert Adobe Photoshop and Illustrator documents. Moreover, end users can perform graphics operations, update layer properties, add watermarks or render one format to PNG, GIF, BMP, TIFF, JPEG, JPEG2000, PSD, PSB etc. Its a standalone API and does not require Adobe Photoshop installation.Watermark PSD via Online App
PSD What is PSD File Format?
PSD, Photoshop Document, represents Adobe Photoshop's native file format used for graphics designing and development. PSD files may include image layers, adjustment layers, layer masks, annotations, file information, keywords and other Photoshop-specific elements. Photoshop files have default extension as .PSD and has a maximum height and width of 30,000 pixels, and a length limit of two gigabytes.
Read MoreOther Supported Watermarking Formats
Using Java, one can easily watermark different formats including.