This project has moved and is read-only. For the latest updates, please go here.

Create a multi layer (PSD) file

May 16, 2016 at 10:46 AM

I'm looking a lot of documentation but I don't find a real answer about my problem. I tried some code but it doesn't work.

My question is : is it possible to create a PSD file with some layers from 2 or more jpg files ?

I tried with this code with no result (GIMP or Paint.NET do not show me multiple layers) :
using (MagickImageCollection image = new MagickImageCollection())
    MagickImage img1 = new MagickImage(@"C:\temp\img1.jpg");
    img1.Label = "LBL1";
    MagickImage img2 = new MagickImage(@"C:\temp\img2.jpg");
    img2.Label = "LBL2";
Does someone already tried successfully ?
May 16, 2016 at 4:07 PM
When you create a PSD file you will also need to add an image of all layers combined. This means that you will need to add an extra image to the list before you will see layers in GIMP or Paint.NET.
May 17, 2016 at 8:44 AM
Thank you, you saved me, I was able to create the layers.
I missed this information.
Now I hope I can create named group layers.

Do you know if there is a document with the actual psd properties available in Magick.NET (or ImageMagick) ?
May 17, 2016 at 6:08 PM
At this moment it is not possible to create named group layers. The only PSD property that is supported is the name of the layer. You can use the Label property of a MagickImage to set that. I am planning to add support for grouped layers in ImageMagick but I don't know when I will start working on that.