@rlaskowski.sdl
Can you please try using following suggested code on your end using latest Aspose.PSD for .NET 20.7.
var filesList = new string[]
{
"BmpExample.bmp",
"GifExample.gif",
<a class="attachment" href="/uploads/discourse_instance3/41709">PSDNET629_1.zip</a> (524.0 KB)
"Jpeg2000Example.jpf",
"JpegExample.jpg",
"PngExample.png",
"TiffExample.tif",
};
var expectedExceptionMessage = @"Cannot open an image. The image file format may be not supported at the moment or cannot be opened in such way. If you try to add Layer, please Open File as a Stream and use AddLayer method instead. Check the documentation https://docs.aspose.com/display/psdnet/Add+Layer+to+PSD";
foreach (var filePath in filesList)
{
try
{
using (var image = Image.Load(filePath))
{
}
}
catch (Exception e)
{
if (e.InnerException == null ||
!string.Equals(e.InnerException.Message, expectedExceptionMessage, StringComparison.InvariantCultureIgnoreCase))
{
throw e;
}
}
}