Page 1 of 1

PSD from multiple files

Posted: 2018-11-02T16:14:22-07:00
by jb123
Hi Everyone,

I am new to Magick.NET. I am trying to create a layered PSD file but not sure what level of control is available for PSD creation.
The code below creates a layered PSD, but I am wondering and what I need is a way to control more detail of the PSD file like layer names, creating layer groups, layer properties etc.

collection = ImageMagick.MagickImageCollection()
collection.Add (r"E:\\A.jpg")
collection.Add (r"E:\B.jpg")
collection.Write(r"E:\\AB.psd")

With the above, layers are just named L1,L2...


Any hints would be much appreciated!

thanks

Re: PSD from multiple files

Posted: 2018-11-02T23:44:54-07:00
by dlemstra
There is limited control of what you can do with the layers. More info can be found here: https://github.com/dlemstra/Magick.NET/issues/346

Re: PSD from multiple files

Posted: 2018-11-03T13:27:13-07:00
by jb123
Thank you for the response!
Great to hear layer names can be controlled.
How would I go about using the Label method in the image collection? (sample code).

Are there any other aspects of PSD file that can be controlled?
(like layer opacity, blending mode...).

Also, currently each layer created in the PSD file has 'locked' transparency, as if all of them were bacground layers. They can be manually unlocked in Photoshop, but is there a way to avoid that?

Thanks again for your help.