I try to load PSD and save it as PNG, but it thows "Image saving failed." and its inner exception as "Object reference not set to an instance of an object.". I have attached code and PSD file for reference.
Do you know why this error happening?
using (PsdImage image = (PsdImage)Image.Load(@"C:\temp\photooverlay_5_new.psd"))
PsdImage psdImage = image;
var pngOptions = new PngOptions();
pngOptions.ColorType = PngColorType.TruecolorWithAlpha;
psdImage.Save(@"c:\temp\asposeImage.png", new Aspose.Imaging.ImageOptions.PngOptions());
at Aspose.Imaging.Image.Save(Stream stream, ImageOptionsBase optionsBase, Rectangle boundsRectangle)
at Aspose.Imaging.Image.Save(String filePath, ImageOptionsBase options, Rectangle boundsRectangle)