PSD from multiple files

Magick.NET is an object-oriented C# interface to ImageMagick. Use this forum to discuss, make suggestions about, or report bugs concerning Magick.NET
Post Reply
jb123
Posts: 4
Joined: 2018-11-02T16:08:20-07:00
Authentication code: 1152

PSD from multiple files

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

Re: PSD from multiple files

Post 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
.NET + ImageMagick = Magick.NET https://github.com/dlemstra/Magick.NET, @MagickNET, Donate
jb123
Posts: 4
Joined: 2018-11-02T16:08:20-07:00
Authentication code: 1152

Re: PSD from multiple files

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