projects
/
bpgallery.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
* Add support for bounding box based image resize
[bpgallery.git]
/
bpgallery.sh
diff --git
a/bpgallery.sh
b/bpgallery.sh
index d26821a325a7434b866dd22238bcb0f687215743..ade52a50b24560969197a672a272c720d5582f56 100755
(executable)
--- a/
bpgallery.sh
+++ b/
bpgallery.sh
@@
-567,11
+567,19
@@
function generate_resized_images() {
}
function generate_thumbs() {
}
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() {
}
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() {
}
function generate_pages() {