Skip to content

2.1.2: Jpeg YCbcr encode cause pink color blur #2133

@lifeglam

Description

@lifeglam

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.2

Other ImageSharp packages and versions

2.1.1

Environment (Operating system, version and so on)

Windows 11, x86

.NET Framework version

.Net Core 3.0

Description

Jpeg image with YCbCR color space encode with pink blur (sample image added below). This only repros with latest 2.1.2. (2.1.1 works without issue)

Steps to Reproduce

using (Image<Rgba32> image = Image.Load<Rgba32>(File.OpenRead(sourceFilePath))) { using (var destinationImageStream = new MemoryStream()) { destinationImageStream.Position = 0; image.SaveAsJpeg(destinationImageStream); } }

Images

original
converted_pink

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