From 49150e453072cff2c2ecaba1d1a55d8333d191d3 Mon Sep 17 00:00:00 2001 From: Norbert Preining Date: Fri, 22 Dec 2023 03:02:07 +0000 Subject: CTAN sync 202312220302 --- macros/latex/contrib/pagelayout/scripts/pagelayoutapi | 19 ++++++++++++++++++- .../latex/contrib/pagelayout/scripts/pagelayoutapi.1 | 11 +++++++++-- .../contrib/pagelayout/scripts/pagelayoutapi.1.md | 5 +++++ macros/latex/contrib/pagelayout/scripts/textestvis | 2 +- macros/latex/contrib/pagelayout/scripts/textestvis.1 | 4 ++-- 5 files changed, 35 insertions(+), 6 deletions(-) (limited to 'macros/latex/contrib/pagelayout/scripts') diff --git a/macros/latex/contrib/pagelayout/scripts/pagelayoutapi b/macros/latex/contrib/pagelayout/scripts/pagelayoutapi index 4c6888a249..7533cf722e 100755 --- a/macros/latex/contrib/pagelayout/scripts/pagelayoutapi +++ b/macros/latex/contrib/pagelayout/scripts/pagelayoutapi @@ -13,7 +13,7 @@ # LaTeX version 2008/05/04 or later. # -version=1.0.4 +version=1.0.5 _convert() { turbo=$1 @@ -100,6 +100,17 @@ getwidth() { fi } +getheight() { + if command -v magick >/dev/null 2>&1; then + filename=$1 + + originalheight=$( magick identify -ping -format %h "$filename" ) + echo $originalheight + else + echo errormagicknotinstalled + fi +} + optimize() { if command -v magick >/dev/null 2>&1; then filenamecache=$2 @@ -299,6 +310,7 @@ batchoptimize() { usage() { cat <