Saving layered psd file

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
Phasma
Posts: 3
Joined: 2019-03-26T08:26:08-07:00
Authentication code: 1152

Saving layered psd file

Post 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
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Saving layered psd file

Post 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.
Phasma
Posts: 3
Joined: 2019-03-26T08:26:08-07:00
Authentication code: 1152

Re: Saving layered psd file

Post 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.
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Saving layered psd file

Post 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.
Phasma
Posts: 3
Joined: 2019-03-26T08:26:08-07:00
Authentication code: 1152

Re: Saving layered psd file

Post by Phasma »

Thanks.

however, our Tiffs here are not layered themselves. they are in different files in one folder
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Saving layered psd file

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