How to read PSD images in Java

In these series of ‘How to’ articles I will be focusing how we can read PSD images in Java.

What is PSD?

Photoshop filesPSD (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.

JDeli:

PsdDecoder decoder = new PsdDecoder();
BufferedImage image = decoder.read(rawImageBytes);

You can find the javadocs for JDeli here. If JDeli interests you, you can find more information here.

You can find more tutorials in our series on handling common image formats in Java, JDeli and other image libraries.

If you’re a first-time reader, or simply want to be notified when we post new articles and updates, you can keep up to date by social media (Twitter,FacebookandGoogle+) or theBlog RSS.

Related Posts:

The following two tabs change content below.
A Java developer at IDRSolutions with 4 years of experience in Java (self-taught). Now looking forward to speaking at Java One. A knowledge seeker who likes to try out and explore new things.
Zain

About Zain

A Java developer at IDRSolutions with 4 years of experience in Java (self-taught). Now looking forward to speaking at Java One. A knowledge seeker who likes to try out and explore new things.

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes:

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>