Trying to load the psd in the load throws the following error:
> Unhandled exception. Aspose.PSD.CoreExceptions.ImageLoadException: Image loading failed.
---> System.InvalidCastException: Unable to cast object of type 'Aspose.PSD.FileFormats.Psd.Layers.LayerResources.TypeToolInfoStructures.UnknownStructure' to type 'Aspose.PSD.FileFormats.Psd.Layers.LayerResources.TypeToolInfoStructures.DescriptorStructure'. at Aspose.PSD.FileFormats.Psd.Layers.LayerResources.VogkResource.(OSTypeStructure[] ) at .Load(StreamContainer , Int32 ) at Aspose.PSD.FileFormats.Psd.Layers.LayerResourcesRegistry.LoadResourceByFirstSupportedDescriptor(Stream stream, Int32 psdVersion) at .(StreamContainer , , Int64 ) at .(StreamContainer , , Int64 , LayerSectionType&, BlendMode& ) at .(StreamContainer , Int32 , , IColorPalette, , ) at .(StreamContainer , , IColorPalette , , ) at .(StreamContainer , , IColorPalette , Boolean, ) at .Load(StreamContainer , LoadOptions ) at Aspose.PSD.Image.(StreamContainer , LoadOptions ) --- End of inner exception stack trace ---
Code:
PsdImage image = (PsdImage)Aspose.PSD.Image.Load(“C:\input.psd”);
Aspose.psd version, 23.7.0.
PSD used:
psd-file.zip (232 Bytes)
Will there be an explanation for this error that happens when loading the file directly?