diff options
author | Karl Berry <karl@freefriends.org> | 2017-06-25 21:51:33 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2017-06-25 21:51:33 +0000 |
commit | a32eb2dc2cb45c2d6d3713f1f17d183d9e1227a2 (patch) | |
tree | ba2e40f9366fe5c0c63e780cbd15cb1f8ff78560 /Master/texmf-dist/tex/latex/graphics-def/luatex.def | |
parent | 8c5e6770c20f20adab171742c616fea2528a3c1e (diff) |
graphics-def (25jun17)
git-svn-id: svn://tug.org/texlive/trunk@44697 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/graphics-def/luatex.def')
-rw-r--r-- | Master/texmf-dist/tex/latex/graphics-def/luatex.def | 20 |
1 files changed, 18 insertions, 2 deletions
diff --git a/Master/texmf-dist/tex/latex/graphics-def/luatex.def b/Master/texmf-dist/tex/latex/graphics-def/luatex.def index fd6e382f33d..e063fefd082 100644 --- a/Master/texmf-dist/tex/latex/graphics-def/luatex.def +++ b/Master/texmf-dist/tex/latex/graphics-def/luatex.def @@ -18,7 +18,7 @@ %% https://github.com/latex3/graphics-def/issues %% \ProvidesFile{luatex.def} - [2017/06/20 v1.0e Graphics/color driver for luatex] + [2017/06/24 v1.0f Graphics/color driver for luatex] \def\GPT@space{ } \def\c@lor@arg#1{% \dimen@#1\p@ @@ -142,6 +142,9 @@ }% } \let\Gin@attr@hash\@empty +\@ifundefined{Gin@decode} + {\let\Gin@decode\@empty} + {} \@ifundefined{Gin@log} {\let\Gin@log\wlog} {} @@ -164,6 +167,9 @@ \else :P\Gin@page \fi + \ifx\Gin@decode\@empty\else + :D[\Gin@decode]% + \fi \ifGin@interpolate :I% \fi @@ -171,7 +177,15 @@ \@ifundefined{#1 image\Gin@attr@hash}% {% \saveimageresource - \ifGin@interpolate attr{/Interpolate true}\fi + \ifnum0% + \ifx\Gin@decode\@empty\else 1\fi + \ifGin@interpolate 1\fi + >0 % + attr{% + \ifx\Gin@decode\@empty\else/Decode[\Gin@decode]\fi + \ifGin@interpolate/Interpolate true\fi + }% + \fi \ifx\Gin@page\@empty\else page \Gin@page\fi \Gin@pagebox {#1}% @@ -190,6 +204,7 @@ id=\the\lastsavedimageresourceindex, % \ifx\Gin@page\@empty\else page=\Gin@page , \fi \ifx\Gin@pagebox\@empty\else pagebox=\Gin@pagebox , \fi + \ifx\Gin@decode\@empty\else decode=[\Gin@decode], \fi \ifGin@interpolate interpolate=true, \fi \the\wd\@tempboxa\GPT@space x \the\ht\@tempboxa >% @@ -207,6 +222,7 @@ \let\Gread@jpg\Gread@png \expandafter\let\csname Gread@jbig2\endcsname\Gread@png \def\Gread@pdf#1{% + \let\Gin@decode\@empty \Gin@interpolatefalse \Gread@pdftex{#1}% } |