-
-
Notifications
You must be signed in to change notification settings - Fork 890
Closed
Labels
Description
Prerequisites
- I have bought a Commercial License
- I have written a descriptive issue title
- I have verified that I am running the latest version of ImageSharp
- I have verified if the problem exist in both
DEBUGandRELEASEmode - I have searched open and closed issues to ensure it has not already been reported
ImageSharp version
2.1.3
Other ImageSharp packages and versions
2.1.1, 2.1.2
Environment (Operating system, version and so on)
Windows 10 / Linux
.NET Framework version
7.0
Description
When i Load the following images with Image.Load(..) I get the Exception: "Input stream does not have enough bytes to parse declared contents of the 00 marker."
Steps to Reproduce
var fileStream = File.OpenRead(file);
using (var memoryStream = new MemoryStream())
{
await fileStream.CopyToAsync(memoryStream).ConfigureAwait(continueOnCapturedContext: false);
memoryStream.Seek(0L, SeekOrigin.Begin);
using (var originalImage = Image.Load(memoryStream, out var imageFormat))
{
...
}
}



