}
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() {