[latex3-commits] [l3svn] 01/03: Drop interpolation support for images

noreply at latex-project.org noreply at latex-project.org
Thu May 18 18:35:53 CEST 2017


This is an automated email from the git hooks/post-receive script.

joseph pushed a commit to branch master
in repository l3svn.

commit 22dda5be8e14c533372e5483c318f9968272c485
Author: Joseph Wright <joseph.wright at morningstar2.co.uk>
Date:   Thu May 18 17:18:09 2017 +0100

    Drop interpolation support for images
    
    At least at present: it's not clear that this or pagebox (to drop in next commit) is
    actually useful 'in the wild'. Before adding these ideas, best to get a feel for
    what is really needed.
---
 l3kernel/l3drivers.dtx      |   13 +------------
 l3trial/l3image/l3image.dtx |   16 +++-------------
 2 files changed, 4 insertions(+), 25 deletions(-)

diff --git a/l3kernel/l3drivers.dtx b/l3kernel/l3drivers.dtx
index c5d6d43..3eb56e8 100644
--- a/l3kernel/l3drivers.dtx
+++ b/l3kernel/l3drivers.dtx
@@ -721,11 +721,7 @@
   {
     \int_zero:N \l__image_page_int
     \tl_clear:N \l__image_pagebox_tl
-    \tl_set:Nx \l_@@_image_attr_tl
-      {
-        \bool_if:NT \l__image_interpolate_bool
-          { :I }
-      }
+    \tl_clear:N \l_@@_image_attr_tl
     \@@_image_getbb_auxi:n {#1}
   }
 \cs_new_eq:NN \@@_image_getbb_png:n \@@_image_getbb_jpg:n
@@ -759,8 +755,6 @@
 \cs_new_protected:Npn \@@_image_getbb_auxii:n #1
   {
     \tex_immediate:D \pdftex_pdfximage:D
-      \bool_if:NT \l__image_interpolate_bool
-        { attr ~ { /Interpolate~true } }
       \int_compare:nNnT \l__image_page_int > 0
         { page ~ \int_use:N \l__image_page_int }
       \tl_if_empty:NF \l__image_pagebox_tl
@@ -958,7 +952,6 @@
 \cs_new_eq:NN \@@_image_getbb_png:n \@@_image_getbb_jpg:n
 \cs_new_protected:Npn \@@_image_getbb_pdf:n #1
   {
-    \bool_set_false:N \l__image_interpolate_tl
     \__image_extract_bb:n {#1}
   }
 %</dvipdfmx>
@@ -1005,8 +998,6 @@
           { :P \int_use:N \l__image_page_int }
         \tl_if_empty:NF \l__image_pagebox_tl
           { : \l__image_pagebox_tl }
-        \bool_if:NT \l__image_interpolate_bool
-           { :I }
       }
       {#1} {#2}
   }
@@ -1033,8 +1024,6 @@
         \tl_if_empty:NF \l__image_pagebox_tl
           { pagebox ~ \l__image_pagebox_tl \c_space_tl }
         (#1)
-        \bool_if:NT \l__image_interpolate_bool
-          { <</Interpolate~true>> }
       }
   }
 %    \end{macrocode}
diff --git a/l3trial/l3image/l3image.dtx b/l3trial/l3image/l3image.dtx
index b7bb353..be1468b 100644
--- a/l3trial/l3image/l3image.dtx
+++ b/l3trial/l3image/l3image.dtx
@@ -52,10 +52,6 @@
 %
 % \section{\pkg{l3image} documentation}
 %
-% \begin{variable}{interpolate}
-%   Indicates whether interpolation should be applied to bitmap image files.
-% \end{variable}
-%
 % \begin{variable}{page}
 %   The page number of an image to be used when including a multi-page image
 %   file. The value should be a positive integer.
@@ -75,10 +71,6 @@
 % which in themselves contain no driver-specific code. This functionality
 % is made available here.
 %
-% \begin{variable}[int]{\l__image_interpolate_bool}
-%   Indicates whether interpolation should be applied to bitmap image files.
-% \end{variable}
-%
 % \begin{variable}[int]{\l__image_page_int}
 %   The page to extract from a multi-page image file: used for |.pdf| files
 %   which may contain multiple pages.
@@ -176,17 +168,15 @@
 %
 % \subsection{Image feature support}
 %
-% \begin{macro}[int]
-%   {\l__image_interpolate_bool, \l__image_page_int, \l__image_pagebox_tl}
+% \begin{macro}[int]{\l__image_page_int, \l__image_pagebox_tl}
 %   Keys which control features of images. The somewhat odd order for
 %   |pagebox| matches that in the \pdfTeX{} manual (where the choices all
 %   have numerical values).
 %    \begin{macrocode}
 \keys_define:nn { image }
   {
-    interpolate .bool_set:N  = \l__image_interpolate_bool,
-    page        .int_set:N   = \l__image_page_int        ,
-    pagebox     .choices:nn  =
+    page    .int_set:N   = \l__image_page_int,
+    pagebox .choices:nn  =
       { artbox, bleedbox , mediabox , trimbox }
       { \tl_set:Nn \l__image_pagebox_tl {#1} } ,
     pagebox / cropbox .code:n = { \tl_clear:N \l__image_pagebox_tl }

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the latex3-commits mailing list