Hi!
The attached file is a simplification of an actual file we are trying to edit using Aspose.PSD v25.4.0
Even with no changes, I’m not being able to save the PSD file back to disk.
I’m running the following code:
var loadOptions = new PsdLoadOptions();
loadOptions.LoadEffectsResource = true;
using (PsdImage image = (PsdImage)Image.Load(@opt.Psd, loadOptions))
{
image.Save(opt.Output);
}
throws the following:
Exception has occurred: CLR/System.ArgumentException
Exception thrown: 'System.ArgumentException' in Aspose.PSD.dll: 'The rectangle has no common processing area. Cannot proceed.'
at Aspose.PSD.Image.GetFittingRectangle(Rectangle rectangle, Int32 width, Int32 height)
at Aspose.PSD.Image.GetFittingRectangle(Rectangle rectangle, Int32[] pixels, Int32 width, Int32 height)
at .(Rectangle , Int32[] )
at .SaveArgb32Pixels(Rectangle , Int32[] )
at .SavePixelsInternal(Rectangle , Int32[] )
at Aspose.PSD.RasterImage..(RasterImage , Rectangle , Int32[] )
at Aspose.PSD.RasterImage.(Rectangle , Int32[] )
at Aspose.PSD.RasterImage.SaveArgb32Pixels(Rectangle rectangle, Int32[] pixels)
at e.e(Rectangle )
at .(Int32[] , Lfx2Resource , Rectangle , Point , Point , Layer )
at .(Int32[] , Lfx2Resource , Rectangle , Point , Point , Layer )
at .(Int32[] , Rectangle , Point , Point , Layer )
at .(Rectangle , Int32[] , Point , Point )
at .Process(Rectangle , Int32[] , Point , Point )
at .(Rectangle )
at .Process(Rectangle , Int32[] , Point , Point )
at .Process(Rectangle , Int32[] , Point , Point )
at .LoadPartialArgb32Pixels(Rectangle , IPartialArgb32PixelLoader )
at .e(Rectangle )
at .(e , IList`1 , )
at .(Rectangle , e , , Int32 , Int32 , )
at .(Rectangle , e , )
at .(Rectangle , RasterImage , Point , Point )
at .(Rectangle , RasterImage , Point , Point )
at ..(Int32 , , RasterImage , Rectangle , Point , Point )
at ..Process(Rectangle , Int32[] , Point , Point )
at ..(LayerGroup , RasterImage , Rectangle )
at ..Process(Rectangle , Int32[] , Point , Point )
at ..e(Rectangle )
at .(e , IList`1 , )
at ..LoadPartialArgb32Pixels(Rectangle , IPartialArgb32PixelLoader )
at .e(Rectangle )
at .(e , IList`1 , )
at .(Rectangle , e , , Int32 , Int32 , )
at .(Rectangle , e , )
at e.e(Rectangle , IPartialArgb32PixelLoader )
at Aspose.PSD.RasterImage.(Rectangle , IPartialArgb32PixelLoader )
at Aspose.PSD.RasterImage.LoadPartialArgb32Pixels(Rectangle rectangle, IPartialArgb32PixelLoader partialPixelLoader)
at Aspose.PSD.FileFormats.Psd.PsdImage.(StreamContainer , e )
at Aspose.PSD.FileFormats.Psd.PsdImage.SaveData(Stream stream)
at Aspose.PSD.DataStreamSupporter.Save(Stream stream)
at Aspose.PSD.DataStreamSupporter.Save(String filePath)
at ...
Please advise.
test.zip (1.6 MB)
Thanks.