SixLabors / ImageSharp

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

TIF to JPG Color Problem #2586

Closed FabCodeDE closed 9 months ago

FabCodeDE commented 9 months ago

Prerequisites

ImageSharp version

3.02

Other ImageSharp packages and versions

Web 3.01 & Web.Providers.Azure 3.01

Environment (Operating system, version and so on)

Windows Server 2022 & Windows 11

.NET Framework version

.NET Core 7

Description

When converting a specific tif image from tif to jpg via web the colors are completly wrong and look distorted: https://picture-media-pool.ap.basf.com/media/dnaahyll/gakago_erygr_2_05-blumeria-graminis-cmyk.tif?format=jpg&width=1920 If you download the image as tif and then view it with the windows image viewer it looks normal. I can also provide multiple examples of that.

Steps to Reproduce

When converting a specific tif image from tif to jpg via web the colors are completly wrong and look distorted: https://picture-media-pool.ap.basf.com/media/dnaahyll/gakago_erygr_2_05-blumeria-graminis-cmyk.tif?format=jpg&width=1920 If you download the image as tif and then view it with the windows image viewer it looks normal. I can also provide multiple examples of that.

Images

gakago_erygr_2_05-blumeria-graminis-cmyk Can upload the tif here sadly, need to be downloaded via the url

JimBobSquarePants commented 9 months ago

The web portion here should be irrelevant. If you add the tiff to a zip file you can upload it.

FabCodeDE commented 9 months ago

gakago_erygr_2_05-blumeria-graminis-cmyk.zip here you go

brianpopow commented 9 months ago

gakago_erygr_2_05-blumeria-graminis-cmyk.zip here you go

The image looks correct to me with the current main branch when converting to jpg.

edit: the issue is present in 3.0.2, but is fixed in current main branch.

I think it was fixed with PR #2459

JimBobSquarePants commented 9 months ago

Closing as fixed in #2459