Free Support Forum - aspose.com

Cannot save file opened with Aspose.PSD

Hi!

We are processing the file from the archive attached using Aspose.PSD 20.5.0 and the following code:

AsposeLicenser.LoadLicense();
using (var image = Image.Load(filePath))
{
    var psdImage = (PsdImage)image;
    psdImage.Save(targetFilePath, new PsdOptions(psdImage));
}

An ImageSaveException is thrown while trying to save the file.

snowflake-ui-kit.zip (2.1 MB)

Thanks,
Arnold

@arnoldbeilandevozon,

You are right there is exception thrown while saving the PSD. A ticket with ID PSDNET-679 has been created to investigate and resolve the issue. We sill share feedback with you as soon as the issue will be fixed.

Hi. Any updates on this issue?

@arnoldbeilandevozon

Can you please try using following sample code on your end using Aspose.PSD for .NET 20.7.

   string dataDir = "PSDNET679_1\\";
            var sourceFilePath = dataDir + "snowflake-ui-kit.psd";
            var outputFilePath = dataDir + "snowflake-ui-kit-output.psd";
            using (PsdImage image = (PsdImage)Image.Load(sourceFilePath))
            {
                image.Save(outputFilePath, new PsdOptions(image));
            }

PSDNET679_1.zip (4.0 MB)

Hi!

Please note that because of Regression: Aspose.PSD 20.7.0 breaks font sizes for older files we could not update to 20.7 so we’d like to postpone testing until a newer version is available.

Regards,
Arnold

@arnoldbeilandevozon

We are sorry for your inconvenience. I have added a regression based ticket to address the issue shared in concerned thread. We request for your patience and will share the good news with you as soon as the issue will be fixed.