I just tested again, and it seems to be working now!
ssh to bfriesen@web.sourceforge.net now asks for a password
CMYK JPEG written out as RGB
Closing now. Please report any issues.
Mercurial changeset 18037:e730e4b75046 introduces the updated logic shown above. Please confirm if it solves the issue you encountered.
FYI, the image_info parameter can never be updated by the writer since it is read-only ('const').
Does this updated logic appear correct to you? if (((UndefinedColorspace == image_info->colorspace) && (!IsRGBCompatibleColorspace(image->colorspace) && !IsCMYKColorspace(image->colorspace))) || ((IsRGBCompatibleColorspace(image->colorspace) && !IsRGBColorspace(image->colorspace))))
CMYK JPEG written out as RGB