Skip to content

Opening and saving jpeg using CMYK color space drastically changes image's color #1238

@gsfreema

Description

@gsfreema

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

The following image was created using the CMYK color space.

SolidColor_CYMK

Loading this file and then saving results in this image.

Modified - SolidColor_CYMK

(On my machine, the two images look the same in this issue but if you download the images, you will see the difference. Maybe github is experiencing the same thing 😃)

Steps to Reproduce

The following code is all you need to convert the first image into the second one. Note that this is a .Net Core 3.1 app using C#8.

const string FileName = "SolidColor_CYMK.jpeg";
using var image = Image.Load(FileName);
image.Save($"Modified - {FileName}");

System Configuration

  • ImageSharp version: 1.0.0-rc.2
  • Other ImageSharp packages and versions: N/A
  • Environment (Operating system, version and so on): Win10 1809 x64
  • .NET Framework version: .Net Core 3.1
  • Additional information:

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