# Makie: How to save images as CMYK?

**URL:** <https://discourse.julialang.org/t/makie-how-to-save-images-as-cmyk/95424>\
**Category:** General Usage\
**Tags:** question, package, plotting, makie\
**Created:** [March 2, 2023, 6:20am UTC](https://discourse.julialang.org/t/makie-how-to-save-images-as-cmyk/95424 "2023-03-02T06:20:01Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Katamari](https://avatars.discourse-cdn.com/v4/letter/k/57b2e6/32.png) [@Katamari](https://discourse.julialang.org/u/Katamari)\
**Post date:** [March 2, 2023, 6:20am UTC](https://discourse.julialang.org/t/makie-how-to-save-images-as-cmyk/95424/1 "2023-03-02T06:20:01Z")

</div>

I make images using Makie and save them as follows:

`save(“myimage.pdf”, fig)`

I don’t know whether this line saves the image as RGB or CMYK.

I want to save as CMYK.

How to do it?

---

<div class="post-metadata">

**Author:** ![jules](https://avatars.discourse-cdn.com/v4/letter/j/41988e/32.png) [@jules](https://discourse.julialang.org/u/jules)\
**Post date:** [March 2, 2023, 6:44pm UTC](https://discourse.julialang.org/t/makie-how-to-save-images-as-cmyk/95424/2 "2023-03-02T18:44:42Z")

</div>

Makie uses RGB internally and I think Cairo does as well, so I wouldn’t know how to get CMYK. Might be that Cairo doesn’t even support it.

---

<div class="post-metadata">

**Author:** ![sdanisch](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/sdanisch/32/1406_2.png) [@sdanisch](https://discourse.julialang.org/u/sdanisch)\
**Post date:** [March 6, 2023, 9:32am UTC](https://discourse.julialang.org/t/makie-how-to-save-images-as-cmyk/95424/3 "2023-03-06T09:32:23Z")

</div>

I think you should be able to use ‘save(“test.png”, CMYK.(colorbuffer(fig)))’… Can’t check the it right now if that’s the correct color name, but Colors.jl should have some CMYK color type… And you may need Makie.colorbuffer(fig.scene)

---

<div class="post-metadata">

**Author:** ![cormullion](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/cormullion/32/49131_2.png) [@cormullion](https://discourse.julialang.org/u/cormullion)\
**Post date:** [March 6, 2023, 9:56am UTC](https://discourse.julialang.org/t/makie-how-to-save-images-as-cmyk/95424/4 "2023-03-06T09:56:46Z")

</div>

> [@sdanisch](#):
>
> Colors.jl should have some CMYK

There’s an open issue for it … [Support for CMYK colorspaces · Issue #264 · JuliaGraphics/Colors.jl · GitHub](https://github.com/JuliaGraphics/Colors.jl/issues/264)
