Skip to main content
Tweeted twitter.com/StackMma/status/865642814842978305
replaced http://mathematica.stackexchange.com/ with https://mathematica.stackexchange.com/
Source Link

While answering the question (123118)(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?

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?

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?

edited title
Source Link
JungHwan Min
  • 4.7k
  • 1
  • 23
  • 36

Bug with exporting Image/Graphics in non-RGB ColorSpaceinto CMYK JPEG?

While answering the question (123118), @RussLyons pointed out that exporting graphics and images in non-RGB ColorSpaceCMYK JPEG does not function correctly (at least in JPEG).

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 JPG to CMYKExported JPEG to CMYK

Importing the JPGJPEG back in Mathematica works.

Import["test.jpg"]

Imported JPGImported 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?

Bug with exporting Image/Graphics in non-RGB ColorSpace?

While answering the question (123118), @RussLyons pointed out that exporting graphics and images in non-RGB ColorSpace does not function correctly (at least in JPEG).

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 JPG to CMYK

Importing the JPG back in Mathematica works.

Import["test.jpg"]

Imported JPG

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?

Bug with exporting Image/Graphics into CMYK JPEG?

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?

edited title
Link
JungHwan Min
  • 4.7k
  • 1
  • 23
  • 36

Export Bug with exporting Image/Graphics in non-RGB ColorSpace?

Source Link
JungHwan Min
  • 4.7k
  • 1
  • 23
  • 36
Loading