--- scripts/pgallery/src/pgallery.sh 2012/08/28 08:15:13 1.2 +++ scripts/pgallery/src/pgallery.sh 2012/08/28 08:27:25 1.3 @@ -5,7 +5,7 @@ # can do whatever you want with this stuff. If we meet some day, and you think # this stuff is worth it, you can buy me a beer in return Aron Schlesinger # -# $Paefchen: scripts/pgallery/src/pgallery.sh,v 1.1 2012/08/27 14:23:59 as Exp $ +# $Paefchen: scripts/pgallery/src/pgallery.sh,v 1.2 2012/08/28 08:15:13 as Exp $ # ARG_TITLE="PGallery" @@ -323,7 +323,9 @@ html_img() linkb=$3 linkn=$4 - height=$($BIN_IMGINFO -f $img | awk '{print $4}') + info=$($BIN_IMGINFO -f $img) + width=$(echo $info | awk '{print $3}') + height=$(echo $info | awk '{print $4}') if [ "$linkb" != "" ] then @@ -345,7 +347,7 @@ html_img()