Skip to content

Specific jpeg images result in very strange saved images (corrupted?) #817

@LarsWesselius

Description

@LarsWesselius

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

When loading an image using Image.Load and saving it again, using image.Save(). the resulting image is very different from the original, loaded image without doing any mutations.

Steps to Reproduce

.NET Core 2.1 Console app. Use
using (Image<Rgba32> image = Image.Load("8.jpg")) { image.Save("8-saved.jpg"); }
As the only code in Main and run with 8.jpg in your working directory (see attached).

This is the image being loaded (8.jpg):
8

This is the resulting image after saving:
8-saved

System Configuration

  • ImageSharp version: SixLabors.ImageSharp v1.0.0-beta0006
  • Other ImageSharp packages and versions: None
  • Environment (Operating system, version and so on): Windows 10, latest. .NET Core 2.1 console application
  • .NET Framework version: .NET Core 2.1
  • Additional information:

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions