X-Git-Url: https://git.sommitrealweird.co.uk/bpgallery.git/blobdiff_plain/5e305a2e0a9b4349300a38ceb39a6c67b6dfd7a4..bd2b083210e038f02bd8ee677c0e7772d372c3a0:/bpgallery.sh diff --git a/bpgallery.sh b/bpgallery.sh index d26821a..ade52a5 100755 --- a/bpgallery.sh +++ b/bpgallery.sh @@ -567,11 +567,19 @@ function generate_resized_images() { } function generate_thumbs() { - generate_resized_images $WIDTH $ICONSDIRECTORY + if [[ ! -z $HEIGHT ]]; then + generate_resized_images "${WIDTH}x${HEIGHT}" $ICONSDIRECTORY + else + generate_resized_images $WIDTH $ICONSDIRECTORY + fi } function generate_medium() { - generate_resized_images $MEDIUMWIDTH $MEDIUMDIRECTORY + if [[ ! -z $MEDIUMHEIGHT ]]; then + generate_resized_images "${WIDTH}x${HEIGHT}" $MEDIUMDIRECTORY + else + generate_resized_images $MEDIUMWIDTH $MEDIUMDIRECTORY + fi } function generate_pages() {