Aspose.PSD for Java is an easy to use Adobe Photoshop file format manipulation API. It can easily load and read PSD, PSB & AI files, making it possible for the Java developers to perform operations like updating layer properties, adding watermarks, compression, rotation, scaling or rendering one file format to another without needing to install Adobe Photoshop.
- Load, create & manipulate PSD & PSB files.
- Compress PSD with RLE.
- Rotate, flip, scale or crop images.
- Read & write EXIF data.
- Convert vector to raster.
- Adjust Brightness, Contrast & Gamma.
- Draw and fill basic shapes.
- Clip rectangular regions.
- Apply dithering.
Adobe: PSD, PSB, AI
Raster: TIFF, JPEG, PNG, GIF, BMP, JPEG2000
Fixed Layout: PDF
- Microsoft Windows: Windows Desktop & Server (x86, x64)
- macOS: Mac OS X
- Linux: Ubuntu, OpenSUSE, CentOS, and others
- Java Versions:
J2SE 6.0 (1.6)
or above
Aspose hosts all Java APIs at the Aspose Repository. You can easily use Aspose.PSD for Java API directly in your Maven projects with simple configurations. For the detailed instructions please visit Installing Aspose.PSD for Java from Maven Repository documentation psd.
PsdImage bmpImage = new PsdImage(300, 300);
// fill image data.
Graphics graphics = new Graphics(bmpImage);
graphics.clear(Color.getWhite());
Pen pen = new Pen(Color.getBrown());
graphics.drawRectangle(pen, bmpImage.getBounds());
// create an instance of PsdOptions, Set it's various properties Save image to disk in PSD format
PsdOptions psdOptions = new PsdOptions();
psdOptions.setColorMode(ColorModes.Rgb);
psdOptions.setCompressionMethod(CompressionMethod.Raw);
psdOptions.setVersion(4);
bmpImage.save("output.psd", psdOptions);
Home | Product Page | Docs | Demos | API Reference | Examples | Blog | Search | Free Support | Temporary License