OpenImageIO icon indicating copy to clipboard operation
OpenImageIO copied to clipboard

[BUG] PSD CMYK to RGB: colors are off

Open jochenhz opened this issue 4 years ago • 0 comments

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:

  1. Get the .PSD file from the attached archive: minimal.zip

  2. Then simply run iconvert minimal.psd minimal.png

  3. 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

jochenhz avatar Feb 01 '21 14:02 jochenhz