saucecontrol / PhotoSauce

MagicScaler high-performance, high-quality image processing pipeline for .NET
http://photosauce.net/
MIT License
569 stars 49 forks source link

CMYK images fail conversion when missing color profile with non-WIC codecs #98

Closed iamcarbon closed 1 year ago

iamcarbon commented 1 year ago

We've recently seen an increased number of photos exported from Photoshop using 32bpp CMYK.

Unsure how common this pixel format is... but throwing on the radar.

I'll report back on some more statistics soon.

saucecontrol commented 1 year ago

Per offline convo, the issue looks to be specific to CMYK images missing a color profile, and only when decoding with the non-WIC plugin codecs. Will add a default profile to use in these cases.

saucecontrol commented 1 year ago

https://github.com/saucecontrol/PhotoSauce/commit/154e4249895196348f93973fb3892eab3006d59a should take care of it

iamcarbon commented 1 year ago

Fix confirmed.