X-Git-Url: https://git.sommitrealweird.co.uk/bpgallery.git/blobdiff_plain/10352e437ec87446fb08768a997868f0fbccc540..f428f211fac3aa2a0e51a31f11b15a0cf2d0786c:/bpgallery.sh diff --git a/bpgallery.sh b/bpgallery.sh index 4f421c9..dc8780f 100755 --- a/bpgallery.sh +++ b/bpgallery.sh @@ -543,6 +543,10 @@ function check_dimensions() { 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*}