Skip to content

Exception Input stream does not have enough bytes in version 2.1.1+ #2315

@powerata

Description

@powerata

Prerequisites

  • 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 DEBUG and RELEASE mode
  • I have searched open and closed issues to ensure it has not already been reported

ImageSharp version

2.1.1 - 2.1.3

Other ImageSharp packages and versions

2.1.1 - 2.1.3

Environment (Operating system, version and so on)

Windows 10

.NET Framework version

.NET 6

Description

I found valid (from my point of view) JPG image that fails to load from starting from version 2.1.1.
2.1.0 and lower and also other image processing libs works fine with this image. Image attached.

Steps to Reproduce

using var image = Image.Load("image path");

Images

site137

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions