Aspose.PSD.CoreExceptions.ImageSaveException: Image saving failed

Hi
Everytime i’m trying to save the following file i get the following error: Aspose.PSD.CoreExceptions.ImageSaveException: Image saving failed “System.ArgumentNullException: Value cannot be null. (Parameter ‘key’)”

Here is the file i’m having issues with:
sophos-retargeting-funnel-firewall-web-banners (1).zip (6.2 MB)

The error appears when i’m running the save method in the following structure of code:

using (var image = Image.Load(“sophos-retargeting-funnel-firewall-web-banners (1).psd”))
{
if (image is PsdImage psdImage)
{
var imageOptions = new PsdOptions(psdImage);
psdImage.Save(“Target.psd”, imageOptions);
}
}

I’m on windows in a .net8 project.

Can you please help me with this?

Thanks!

@afaluta

Could you please provide the input file in one archive. I can not open this zip file and get the error “Cannot open this archive file. The following split file (.z01, .z02…) is needed.”

@Dmitriy.Sorokin I hope now it’s ok :
https://www.dropbox.com/scl/fi/g2v41oexpihl2kc2n4h5n/sophos-retargeting-funnel-firewall-web-banners-1.psd?rlkey=dz8yj59u5ts5n3xseqpn01fg1&st=ngto7qwk&dl=0

@afaluta
Thank for file sample. I’ll write you back after investigation.

We have opened the following new ticket(s) in our internal issue tracking system and will deliver their fixes according to the terms mentioned in Free Support Policies.

Issue ID(s): PSDNET-2431

You can obtain Paid Support Services if you need support on a priority basis, along with the direct access to our Paid Support management team.