We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
DEBUG
RELEASE
2.1.1
2.1.5
win7, win11
4.8
Hello!
I found out by experience that since 2.1.1 on one JPEG file, taken from scanner SixLabors.ImageSharp.Image.Load(PATH_TO_JPEG) throw this:
SixLabors.ImageSharp.InvalidImageContentException: 'Input stream does not have enough bytes to parse declared contents of the D7 marker.'
using (var image = SixLabors.ImageSharp.Image.Load("C:\\temp\\Scan762.jpg"))
The text was updated successfully, but these errors were encountered:
I have verified that I am running the latest version of ImageSharp
This is very important. We only support the latest major release which in this case is v3.x. Have you verified that the issue exists there?
Sorry, something went wrong.
I have verified that I am running the latest version of ImageSharp This is very important. We only support the latest major release which in this case is v3.x. Have you verified that the issue exists there?
Sorry, NO. I tried running on last version supported on net48. This feature we need on net48.
Note for v3 we should allow skipping D0-D7 in JpegDecoderCore.LoadTables when called via JpegDecoderCore.ParseStream
JpegDecoderCore.LoadTables
JpegDecoderCore.ParseStream
Successfully merging a pull request may close this issue.
Prerequisites
DEBUG
andRELEASE
modeImageSharp version
2.1.1
Other ImageSharp packages and versions
2.1.5
Environment (Operating system, version and so on)
win7, win11
.NET Framework version
4.8
Description
Hello!
I found out by experience that since 2.1.1 on one JPEG file, taken from scanner SixLabors.ImageSharp.Image.Load(PATH_TO_JPEG) throw this:
SixLabors.ImageSharp.InvalidImageContentException: 'Input stream does not have enough bytes to parse declared contents of the D7 marker.'
Steps to Reproduce
using (var image = SixLabors.ImageSharp.Image.Load("C:\\temp\\Scan762.jpg"))
Images
The text was updated successfully, but these errors were encountered: