Try to add Image to specific layer. But get
ImageLoadException: The image file format may be not supported at the moment.
static void Main(string[] args)
{
Aspose.PSD.License license = new Aspose.PSD.License();
license.SetLicense(@"Aspose.PSD.lic");
var dir = @"path_to_photo\";
// load an existing PSD image as Image
using (PsdImage image = (PsdImage)PsdImage.Load(dir + "img_action.psd"))
{
Layer layer = image.Layers.FirstOrDefault(x => x.Name == "Put a photo here");
var target = (RasterImage)Image.Load(dir + "img_green.jpg");//exception here
layer.DrawImage(new Point(0, 0), target);
image.Save(dir + "result.jpg", true);
}
}