Page 1 of 1

Replace a layer in PSD

Posted: 2016-04-02T14:06:49-07:00
by f2b
Hi,

Does ImageMagick allow to replace a specific layer in a PSD file?
I tried "convert myimage.jpg psdfile.psd[4]" but it replace the whole psd content with the jpg image...

i'm also interested in others solutions like adding layer in a PSD file, deleting...

Thanks for your help.

Re: Replace a layer in PSD

Posted: 2016-04-02T14:15:29-07:00
by snibgo
To do this with ImageMagick, you need to read the entire PSD file. Then replace whichever image in the list you want. Then write the entire PSD file.

Re: Replace a layer in PSD

Posted: 2016-04-02T14:24:28-07:00
by f2b
ok, doing so i encounter a second problem:

in the original PSD file there is "adjustement layer" Curve, Color balance, level, and ImageMagic seems to not preserve them :/

My logic was to keep all the artistic setup in one PSD file for easy adjustment, and use this psd with IM to aplly those effect on multiple images

Re: Replace a layer in PSD

Posted: 2016-04-02T14:30:47-07:00
by snibgo
Photoshop writes lots of metadata to PSD files. ImageMagick doesn't read or process all this metadata. If you want to use this metadata, you should do your processing with Photoshop scripts, or write the metadata in a format that IM can use.

Re: Replace a layer in PSD

Posted: 2016-04-02T15:00:21-07:00
by fmw42
I do not believe that IM can handle adjustment layers, only normal image layers, at this time.