Page 1 of 1

PSD with "shape layer"

Posted: 2015-12-16T04:42:38-07:00
by Shion
Hi

I know that PSD support is limited, but I'd like to know if "shape layers" are supported, if support is planned for the future or if the following simply is a bug.

I have the following PSD file: Download
After converting it with the following command, the output is not as expected.

Code: Select all

convert "with shape-layer.psd" -flatten out.jpg
The converted file does not include the big "N" letter which is in a shape layer in the PSD. In fact it seems that all shape layers for any given PSD are simply ignored.
The correct output should be:
Image

Does anybody know if I'm doing things wrong here or if it's just the way it is for now?
Thanks in advance!

Re: PSD with "shape layer"

Posted: 2015-12-16T10:16:31-07:00
by fmw42
I do not think IM supports shape layers, but I will defer to the developers.

Re: PSD with "shape layer"

Posted: 2015-12-16T15:20:27-07:00
by dlemstra
Shape layers are not supported at the moment. I also have no clue how to read them. I could not find anything about them in the following document: http://www.adobe.com/devnet-apps/photos ... rmatashtml. Feel free to point us to a document that describes how we should read 'shape layers'.

Re: PSD with "shape layer"

Posted: 2015-12-18T08:32:17-07:00
by Shion
Sadly, I didn't find a specification detailing the PSD-format or therefore the shapes layers.
What I found instead is a tool which seems to be able to read these kind of layers.

The tool is called PSD/PSB Parser Utility.
The source can also be found here: Source.

I tried the tool with this command:

Code: Select all

psdparse.exe file.psd -l -w -x -e -r
The resultig XML (psd.xml) has the needed information for the 'shapes layer' (called 'Farbfüllung 1' in my initial PSD) in it.
The relevant lines are from line 4192 to 4336.

Somewhere in the source code might be an indication on how this information is read. I just haven't found it yet.
I'm searching on it currently but will have no time till Monday, so I'm posting my progression so far. :)

I hope that this information is at least a bit useful.
I will update again if I find any information!
Thank you

Re: PSD with "shape layer"

Posted: 2015-12-22T06:53:34-07:00
by Shion
I actually found something, hopefully at least a bit, useful in the docs.
Refer to the part where it says: "Vector mask setting (Photoshop 6.0)" (search for "vmsk").

The important part of my PSD file actually seems to be a path.
The vector mask documentation above links to the path-format specification which seems a bit more detailed than the rest from adobe: Path-Format.

I don't think there is any other information on this specific stuff on the internet.
If I find anything more, I'll let you know.

Thanks