summaryrefslogtreecommitdiff
path: root/tex/context/base/mkxl/lpdf-img.lmt
diff options
context:
space:
mode:
authorHans Hagen <pragma@wxs.nl>2021-09-06 12:08:31 +0200
committerContext Git Mirror Bot <phg@phi-gamma.net>2021-09-06 12:08:31 +0200
commit0b177b615d126b85d1399fba3cc55bb0d3ddfbba (patch)
tree53ae63751f90892d5c5b56ec1726977bece0600f /tex/context/base/mkxl/lpdf-img.lmt
parent26a37aadfa1c26b389c7ef9c5f310a1e2ddf596c (diff)
downloadcontext-0b177b615d126b85d1399fba3cc55bb0d3ddfbba.tar.gz
2021-09-06 11:46:00
Diffstat (limited to 'tex/context/base/mkxl/lpdf-img.lmt')
-rw-r--r--tex/context/base/mkxl/lpdf-img.lmt6
1 files changed, 4 insertions, 2 deletions
diff --git a/tex/context/base/mkxl/lpdf-img.lmt b/tex/context/base/mkxl/lpdf-img.lmt
index 95235959e..ecd154bbf 100644
--- a/tex/context/base/mkxl/lpdf-img.lmt
+++ b/tex/context/base/mkxl/lpdf-img.lmt
@@ -1312,7 +1312,7 @@ do
elseif colorspace == 2 then
colorspace = "DeviceRGB"
elseif colorspace == 3 then
- colorspace = "DeviceCMYK"
+ colorspace = "DeviceCMYK"
end
local colordepth = (specification.colordepth or 2) == 16 or 8
local index = specification.index
@@ -1348,8 +1348,10 @@ do
}
xobject.SMask = pdfreference(pdfflushstreamobject(pack(specification,"mask"),d()))
end
+ local w = specification.width
+ local h = specification.height
return createimage {
- bbox = { 0, 0, specification.width/xsize, specification.height/ysize }, -- mandate
+ bbox = { 0, 0, w and (w/xsize) or xsize, h and (h/ysize) or ysize }, -- mandate
-- nolength = true,
nobbox = true,
notype = true,