SixLabors / ImageSharp

:camera: A modern, cross-platform, 2D Graphics library for .NET
https://sixlabors.com/products/imagesharp/
Other
7.39k stars 851 forks source link

After the jpeg image is loaded, there is a problem with the image color #2755

Closed anjisZhou closed 3 months ago

anjisZhou commented 3 months ago

Prerequisites

ImageSharp version

2.1.8

Other ImageSharp packages and versions

2.1.6

Environment (Operating system, version and so on)

win11

.NET Framework version

4.6.2

Description

I load a jpeg image from a file and save it as a bmp or jpg. When I view it with other image viewers, the image displays strangely. So far, I have only found this one image that has the problem, and it does not appear when I load it with System.Drawing.Bitmap.

Steps to Reproduce

using (var image = Image.Load<Bgr24>("./src.jpg"))
{
  image.SaveAsJpeg("111.jpg");
}

Images

B409A35F-21EF-4696-917A-EFE2B42E9DC6 Original file

1111 Re-saved file

JimBobSquarePants commented 3 months ago

Hi @anjisZhou

It's really important that when you complete this issue template you do so accurately.