From cb534886201ab059c49d5d5ac4a204ba0d4c71fa Mon Sep 17 00:00:00 2001 From: Andreas Brachold Date: Sat, 20 Aug 2005 04:54:21 +0000 Subject: - fix scripts/maverickplugin.sh: better format for resolution retrieval --- scripts/maverickplugin.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'scripts/maverickplugin.sh') diff --git a/scripts/maverickplugin.sh b/scripts/maverickplugin.sh index 1b41869..f6888f9 100755 --- a/scripts/maverickplugin.sh +++ b/scripts/maverickplugin.sh @@ -76,7 +76,7 @@ fi else # Get image resolution - RES=`echo $( identify "$INFILE" | cut -d " " -f 3 )` # checked with imagemagick 6.0.6, + RES=`echo $( identify -format "%wx%h" "$INFILE" )` # checked with imagemagick 6.0.6 ... # Parse identify output image.jpg JPEG 3456x2304 DirectClass 4.7mb 3.720u 0:04 X_RES=$(echo -e "$RES"| cut -d "x" -f 1) Y_RES=$(echo -e "$RES"| cut -d "x" -f 2) -- cgit v1.2.3