]> git.sommitrealweird.co.uk Git - bpgallery.git/blobdiff - bpgallery.sh
* Update version number ready for release
[bpgallery.git] / bpgallery.sh
index d26821a325a7434b866dd22238bcb0f687215743..94bd4eb2ee1b87ac4f8450e0d497f151f7cd51f1 100755 (executable)
@@ -19,7 +19,7 @@
 
 set -f
 
-VERSION="1.1.1+arch"
+VERSION="1.1.2"
 
 function bpgallery_default_head() {
 cat <<END
@@ -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() {