summaryrefslogtreecommitdiff
path: root/tex/context/base/mkiv/grph-inc.lua
diff options
context:
space:
mode:
Diffstat (limited to 'tex/context/base/mkiv/grph-inc.lua')
-rw-r--r--tex/context/base/mkiv/grph-inc.lua6
1 files changed, 6 insertions, 0 deletions
diff --git a/tex/context/base/mkiv/grph-inc.lua b/tex/context/base/mkiv/grph-inc.lua
index fdac5f1a9..bfe67094e 100644
--- a/tex/context/base/mkiv/grph-inc.lua
+++ b/tex/context/base/mkiv/grph-inc.lua
@@ -1509,6 +1509,11 @@ function checkers.generic(data)
-- tricky as img doesn't allow it
f.attr = figure.attr
end
+ if dr.cmyk == v_yes then
+ f.enforcecmyk = true
+ elseif dr.cmyk == v_auto and attributes.colors.model == "cmyk" then
+ f.enforcecmyk = true
+ end
figure = f
end
local f, d = codeinjections.setfigurealternative(data,figure)
@@ -2059,6 +2064,7 @@ implement {
{ "conversion" },
{ "resolution" },
{ "color" },
+ { "cmyk" },
{ "arguments" },
{ "repeat" },
{ "transform" },