Can hidden PSD layers be enabled?

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
bearcherian
Posts: 9
Joined: 2015-07-02T12:23:46-07:00
Authentication code: 1151

Can hidden PSD layers be enabled?

Post 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?
User avatar
dlemstra
Posts: 1570
Joined: 2013-05-04T15:28:54-07:00
Authentication code: 6789
Contact:

Re: Can hidden PSD layers be enabled?

Post by dlemstra »

For invisible layers when set -compose to 'None' to make it visible again you should use -compose undefined.
.NET + ImageMagick = Magick.NET https://github.com/dlemstra/Magick.NET, @MagickNET, Donate
bearcherian
Posts: 9
Joined: 2015-07-02T12:23:46-07:00
Authentication code: 1151

Re: Can hidden PSD layers be enabled?

Post 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.
Post Reply