Page 1 of 1

Can hidden PSD layers be enabled?

Posted: 2015-07-02T12:30:14-07:00
by bearcherian
I have a large number of PSD files that will be processed. They need to have certain layers rendered into a flattened file. I've got the command to do this, but the problem is that sometimes the PSD is saved with the layers that need to be rendered being turned off or hidden. I can see that IM can see the layer, but does not render any of its content because it is hidden.

Is there a way I can make the layer visible and then flatten into the image?

Re: Can hidden PSD layers be enabled?

Posted: 2015-07-02T13:29:32-07:00
by dlemstra
For invisible layers when set -compose to 'None' to make it visible again you should use -compose undefined.

Re: Can hidden PSD layers be enabled?

Posted: 2015-07-02T23:50:38-07:00
by bearcherian
dlemstra wrote:For invisible layers when set -compose to 'None' to make it visible again you should use -compose undefined.
This wasn't quote clear, but I think you were saying the layer has a Compose setting of 'None', as viewed using 'identity -verbose' on the file. I tried a couple of different options with compose. Eventually I found that '-compose Over' was what I needed. So my command looks like this:

Code: Select all

convert -compose Over Test.psd[1] Test.psd[2] Test.psd[3] -flatten Test.jpg
Where Test.psd[2] Was turned off in photoshop and had a compose attribute of none.

Thanks for the assistance.