In these series of ‘How to’ articles I will be focusing how we can read PSD images in Java.
What is PSD?
PSD (Photoshop Document) is a format used by the popular Adobe Photoshop. The software which has its own format is used by many people for graphic designing and image editing. It uses the extension ‘.psd’.
A PSD file contains multiple objects including images, shapes, text, filters and other objects often used in graphic designing/editing. This allows photoshop users to save, transfer and make further changes to their work in the future.
JDeli is one of a few libraries that can read PSD files.
How to read PSD images in Java?
Below you will find an example of how to read PSD files using Java through JDeli.
PsdDecoder decoder = new PsdDecoder(); BufferedImage image = decoder.read(rawImageBytes);
You can find more tutorials in our series on handling common image formats in Java, JDeli and other image libraries.