set -f
-VERSION="1.1.3"
+VERSION="1.1.4"
function bpgallery_default_head() {
cat <<END
wantedheight=$2
dir=$3
filename=$4
+ if [ ! -e "$dir/$filename" ]; then
+ echo 0
+ return
+ fi
iconwidth=$($IDENTIFYCOMMAND -format "%wx%h" "$dir/$filename")
iconheight=${iconwidth//*x}
iconwidth=${iconwidth//x*}