TIFF CMYK ICC Profile Color Rendering Issue
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
- Área
- computer-graphics
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
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
DEBUGandRELEASEmode - 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
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de SixLabors/ImageSharp
-
Grayscale Icc profile color Abiertobug metadata:icc
Dificultad 4/5 3-5 días Aptitud para principiantes 52/100
SixLabors/ImageSharp#3197 ·
-
needs triage
Dificultad 3/5 1-2 días Aptitud para principiantes 72/100
SixLabors/ImageSharp#3194 · 3 comentarios ·
-
formats:exr
Dificultad 5/5 Más de una semana Aptitud para principiantes 35/100
SixLabors/ImageSharp#3116 · 2 comentarios · 1 reacción ·
-
needs triage
Dificultad 2/5 1-3 horas Aptitud para principiantes 52/100
SixLabors/ImageSharp#2805 · 1 comentario ·
-
CR2: System.NotSupportedException: Missing SOI marker offset for tiff with old jpeg compression Abiertoneeds triage
Dificultad 4/5 3-5 días Aptitud para principiantes 35/100
SixLabors/ImageSharp#2665 · 2 comentarios ·
Todos los issues de SixLabors/ImageSharp
Issues similares
-
effort:S P3 refactor
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
nightscout/nocturne#1532 ·
-
core dependencies
Dificultad 1/5 Menos de una hora Aptitud para principiantes 80/100
-
documentation
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
-
C#/.NET Roslyn LSP Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 70/100
-
Suspicious code fragments Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
DotNetNext/SqlSugar#1458 ·