summaryrefslogtreecommitdiff
path: root/tex/context/base/mkiv/grph-inc.lua
diff options
context:
space:
mode:
authorHans Hagen <pragma@wxs.nl>2019-10-10 15:29:49 +0200
committerContext Git Mirror Bot <phg@phi-gamma.net>2019-10-10 15:29:49 +0200
commit64f50a1d7fe79d365b350c1bae688b9bf1b44d34 (patch)
treeda3871bb93562ec8b9d125b71ad08020881dca48 /tex/context/base/mkiv/grph-inc.lua
parent4855f5a841edc1db318818c89f30d12227f4740f (diff)
downloadcontext-64f50a1d7fe79d365b350c1bae688b9bf1b44d34.tar.gz
2019-10-10 14:28:00
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" },