Is there a way of reading the layer information in a psd file?
Thanks
Newb PSD layer Question
- fmw42
- Posts: 25562
- Joined: 2007-07-02T17:14:51-07:00
- Authentication code: 1152
- Location: Sunnyvale, California, USA
Re: Newb PSD layer Question
And doing what with it?
IM can copy or extract the layer from one PSD to another file, but there is no current way that I know to just read the layer names and report that. But dlemstra is the PSD expert on this forum, so he can give your further information or correct me if I am wrong.
Re: Newb PSD layer Question
I'd like to extract the name, contents and save each layer out as a separate image file if it's an image, or extract the text if it contains text. Is this possible?
- fmw42
- Posts: 25562
- Joined: 2007-07-02T17:14:51-07:00
- Authentication code: 1152
- Location: Sunnyvale, California, USA
Re: Newb PSD layer Question
ImageMagick does not know about layer names as far as I know. But you can export each layer, so long as they are simple layers and not adjustment layer and such. ImageMagick cannot extract vector text that you type into your PSD file. It is a raster processor and knows only a little about PSD files.
But again, dlemstra, know more about this than I do. So I hope he replies to confirm or correct my statements.
Re: Newb PSD layer Question
Hi
Thanks, I'd like to be able to use the magicknet api with an app to process the file rather than through the imagemagick application.
Thx
Thanks, I'd like to be able to use the magicknet api with an app to process the file rather than through the imagemagick application.
Thx
Re: Newb PSD layer Question
Fred is correct you can only get the image data and and not just the text. You will need to use a MagickImageCollection to get all the layers. And each MagickImage in that collection contains a Label property that will contain the name of the layer.