Convert Photoshop .psd file into one PNG file per layer?

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
tnek

Convert Photoshop .psd file into one PNG file per layer?

Post by tnek »

Hi,

I'm wondering if it's possible using Image Magick?

I have a psd file which consists of a lot of layers, maybe 100. I would like to save each layer to its own file, preferably as PNG but any lossless bitmap format is fine.

It's a web design mockup and I need to extract the different components for making a prototype. It's roughly one layer per component which would make the above very convenient if it's possible.

Best regards, Kent
Bonzo
Posts: 2971
Joined: 2006-05-20T08:08:19-07:00
Location: Cambridge, England

Re: Convert Photoshop .psd file into one PNG file per layer?

Post by Bonzo »

You should be able to do it but you do not saying what you are using, php, batch script, bash etc.

image.psd[0] Should be all the layers in one image.
image.psd[1] - image.psd[100] should be all the other layers seperated
tnek

Re: Convert Photoshop .psd file into one PNG file per layer?

Post by tnek »

Ah. I will be using a batch script. Is it possible to use the layer names as file names? (If it's difficult I'll skip that idea)
Post Reply