Hacktoberfest 2026: los issues que los mantenedores marcaron para octubre, abiertos y aptos para principiantes. Explorar issues de Hacktoberfest

TIFF CMYK ICC Profile Color Rendering Issue

Abierto
#3,198 1 comentario 0 reacciones 0 asignados Ver en GitHub

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
4/5
Tiempo estimado
3-5 días
Aptitud para principiantes
48/100
Tipo de issue
Error
Claridad
Bastante claro
Estado de actividad
Activo
Stack tecnológico
csharp

Línea de trabajo

Start by running the provided DecoderOptions reproduction with cmyk_image.tiff and compare the three attached TIFFs in the same color-managed viewer. Trace ImageSharp's TIFF ICC profile handling for ColorProfileHandling.Preserve and Convert; done means the generated images visually match the original as expected.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

needs triage
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

4.1.2

Other ImageSharp packages and versions
  • SixLabors.ImageSharp.Drawing 3.1.0 - SixLabors.ImageSharp.Web 4.0.1
Environment (Operating system, version and so on)

Windows 11

.NET Framework version

.NET 10.0

Description

When loading a TIFF image with an embedded CMYK ICC profile using ColorProfileHandling.Preserve, the colors are rendered incorrectly and do not match the original image. The preserved version shows noticeably different colors compared to the original, while the converted version appears to produce more accurate results.

This suggests an issue with how ImageSharp handles CMYK ICC profile preservation when converting to the display color space (sRGB). The color transformation is not producing the expected visual output that matches the original image.

Steps to Reproduce
using SixLabors.ImageSharp;
using SixLabors.ImageSharp.Formats;

const string inputPath = "cmyk_image.tiff";

using (Image image = Image.Load(
    new DecoderOptions
    {
        ColorProfileHandling = ColorProfileHandling.Preserve
    },
    inputPath))
{
    image.Save("cmyk_image.preserve.tiff");
}

using (Image image = Image.Load(
    new DecoderOptions
    {
        ColorProfileHandling = ColorProfileHandling.Convert
    },
    inputPath))
{
    image.Save("cmyk_image.converted.tiff");
}

Open these files in the same color-managed image viewer:
◦ cmyk_image.tiff
◦ cmyk_image.preserve.tiff
◦ cmyk_image.converted.tiff

4.Compare both generated images with the original. Iv'e also add the images produce by the code

Expected result: Both generated images should visually match the original CMYK TIFF.

Actual result: Both generated images have noticeable color differences. The output created with Preserve differs the most from the original.

Images

cmyk_image.preserve.tiff
cmyk_image.preserve.tiff
cmyk_image.tiff
cmyk_image.tiff
cmyk_image.converted.tiff
cmyk_image.converted.tiff

Lenguaje dominante
C#
Estrellas
8k
Forks
899
Merge medio
1 d 5 h
PR fusionados (30 d)
7

Guía de contribución

Abrir la guía de contribución

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de SixLabors/ImageSharp

Todos los issues de SixLabors/ImageSharp

Issues similares

Más issues de C#

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.