From 3d75fadace421bf3768ae901a5825f86b04ce614 Mon Sep 17 00:00:00 2001 From: xyz Date: Fri, 13 Aug 2021 02:43:35 -0700 Subject: use -ping for identify, faster --- .local/bin/convwall | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.local/bin/convwall b/.local/bin/convwall index 7ef49a9f..286e85a8 100755 --- a/.local/bin/convwall +++ b/.local/bin/convwall @@ -6,8 +6,10 @@ hratio=$SCRHEIGHT # chop how much from center chopnum=99% -width=$(identify -format '%w' "$1") -height=$(identify -format '%h' "$1") +# my benchmark shows -ping is much faster than default +# https://github.com/ImageMagick/ImageMagick/issues/3183#issuecomment-800955241 +width=$(identify -ping -format '%w' "$1") +height=$(identify -ping -format '%h' "$1") ratio=$((wratio*100/hratio)) dim=$((width*100/height)) -- cgit v1.2.3-70-g09d2