-* Allow a fixed height to be specified instead or as well as a fixed width, in
- the latter case, resize to which ever fits the bounding box, but keep the
- aspect ratio.
* Allow ordering of images rather than the current "sort" based algorithm on
filename.
}
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() {