5
$\begingroup$

While answering the question (123118), @RussLyons pointed out that exporting graphics and images in CMYK JPEG does not function correctly.

For instance:

p = Graphics[{CMYKColor[1, 0, 1, 0], Rectangle[]}];

Original Graphics

Exporting the graphics in CMYK results in a black rectangle.

Export["test.jpg", p, "JPEG", "ColorSpace" -> "CMYK"];

Exported JPEG to CMYK

Importing the JPEG back in Mathematica works.

Import["test.jpg"]

Imported JPEG

I know that JPEG files support CMYK color space but Mathematica seems not to be doing this correctly. Is this a bug with Mathematica 's Export function?

$\endgroup$

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Browse other questions tagged or ask your own question.