Skip to content

Some old jpg images are saved with glitches (regression in alpha) #1978

@botinko

Description

@botinko

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

Description

Some pictures of our clients get corrupted when resizing and even when simply resaving by ImageSharp.
Issue exists in 2.0.0-alpha.0.168 but doesn't exists in v1.0.4.

Steps to Reproduce

            var img = Image.Load(@"issue.jpg");
            img.Save("copy.jpg");

before
issue
after
copy

Link to original image and image after resaving https://drive.google.com/file/d/1_k54RFuPciKeKBtFDLftIKetOPsWkOFO/view?usp=sharing

If you resave the image in any editor, the problem stops reproducing. So you need an original image from archive to reproduce.

System Configuration

  • Other ImageSharp packages and versions: 2.0.0-alpha.0.168
  • Environment (Operating system, version and so on): Windows 10, docker
  • .NET Framework version: dotnet 5, 6
  • Additional information: issue doesn't exists in v1.0.4.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions