Page 1 of 1

Saving layered psd file

Posted: 2019-03-26T08:42:38-07:00
by Phasma
Hello

I am new To image magick (i use it for Windows) and I am trying to use it to save out a content of a folder into a layered psd. In the best case I would like to save specificly named files in the folder already with a correct blending mode, but for now it seems, that imagemagick does not save a blending mode at all.

this is my simple current command:

Code: Select all

magick C:\folder\folder\*.tif C:\tmp\large_psd.psd
when I open the psd in photoshop, it says to me that the blending mode is not known and asks me if i want to flatten the image (looks good, colors are correct etc..., but I am loosing all the layers of course) or If i just want to continue with the normal blending mode (layers seem to be there but they look odd and are not correct)

In order to set the blending mode for the psd I tried something like this

Code: Select all

magick C:\folder\folder\*.tif -layers Composite C:\tmp\large_psd.psd
but it only gives me errors wherever I put the optional parameters... I am not super keen to all this command line stuff and I am sure there is a simple solution, but in all the help files I could not really find some good examples on how to use these commands properly with a correct syntax

I hope someone can help me with this (maybe even with my bigger plan of setting the blending modes based on the image names)

Thanks in advance
Phasma

Re: Saving layered psd file

Posted: 2019-03-26T11:52:27-07:00
by fmw42
ImageMagick can only write simple layered PSD files at this time. You cannot name the layers with ImageMagick. And you cannot set blending modes.

Re: Saving layered psd file

Posted: 2019-03-27T01:42:09-07:00
by Phasma
Thanks. then I will only use it for simple psd's. however - I still have the issue, that Photoshop itself is not able to get any blending mode at all with a file generated like the first example.

Re: Saving layered psd file

Posted: 2019-03-27T09:15:29-07:00
by fmw42
I do not think you can convert a layered TIFF with blending layers to PSD in Imagemagick. But I will defer to the IM developers.

You can try some of the TIFF or PSD defines from https://imagemagick.org/script/command- ... hp#defines, but I do not think they will help. You can save layers converting from PSD to PSD with the define for psd:additional-info=all|selective. But I do not know if that works for converting from TIFF to PSD.

Perhaps you should post a link to one of your TIFFs that you want to convert to PSD.

Re: Saving layered psd file

Posted: 2019-04-01T01:28:10-07:00
by Phasma
Thanks.

however, our Tiffs here are not layered themselves. they are in different files in one folder

Re: Saving layered psd file

Posted: 2019-04-01T10:14:24-07:00
by fmw42
You can convert multiply tiffs to a simple layered PSD file. But you must create a first layer that is the flattened layers of all your tiff files and include that first in your command. Try

Code: Select all

convert *.tiff ( -clone 0--1 -background none -flatten ) -insert 0 image.psd
Please always provide your IM version as syntax may differ. For IM 7 use magick rather than convert.