From e1441a093fcc5ff6ff453caad1702d3c85ed8d73 Mon Sep 17 00:00:00 2001 From: Marcus Date: Sat, 6 Jan 2024 17:21:08 +0100 Subject: [PATCH] fix resize for ANIMATION --- pixelfloot.sh | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/pixelfloot.sh b/pixelfloot.sh index 92bbd56..ba85d35 100755 --- a/pixelfloot.sh +++ b/pixelfloot.sh @@ -259,12 +259,6 @@ convertimg() { CONVERTFILE="$1" fi - if [ -n "$RESIZE" ] - then - RESIZE="-resize $RESIZE" - - fi - convert $CONVERTFILE $BORDER $RESIZE txt: | tail -n +2 | awk '{print $1 $3}' | sed -e 's/\,/ /' -e 's/\:/ /' -e 's/\#//' -e 's/^/PX /' } @@ -448,6 +442,11 @@ floot() { else BORDER="" fi + if [ -n "$RESIZE" ] + then + message "resizing to $RESIZE px" + RESIZE="-resize $RESIZE" + fi case $FNAME in # small stupid animation, two alternating images @@ -487,6 +486,7 @@ floot() { ;; *) + if [ $ANIMATION ] then checkfile $IMGFILE