OpenImageIO
OpenImageIO copied to clipboard
[BUG] PSD CMYK to RGB: colors are off
Describe the bug Converting a PSD file to e.g. PNG fails to convert CMYK to RGB correctly.
To Reproduce Steps to reproduce the behavior:
-
Get the .PSD file from the attached archive: minimal.zip
-
Then simply run
iconvert minimal.psd minimal.png -
Then observe that the PNG colors mismatch the correct result of the PSD input
Expected behavior Cyan becomes greenish when converting from CMYK to RGB
Evidence These lines of code are rather suspicious. Maybe the PSD format is not consistently storing CMYK in a WTF way?
Platform information:
- OIIO branch/version: 2.2.10.1 home-brew edition
- OS: macOS