summaryrefslogtreecommitdiff
path: root/src/photoalbum.sh
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2022-02-20 14:08:45 +0000
committerPaul Buetow <paul@buetow.org>2022-02-20 14:08:45 +0000
commit75bb3c2fe5643c9f69a6bd080cd3be8f7e2582f3 (patch)
tree6b2a908d3e8fdc4307bcccd546b65edffa349b11 /src/photoalbum.sh
parent6a12bcbd36b0cd1179104297536c7b0794ffeded (diff)
smaller fixes
Diffstat (limited to 'src/photoalbum.sh')
-rwxr-xr-xsrc/photoalbum.sh6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/photoalbum.sh b/src/photoalbum.sh
index e79d3d8..81903e0 100755
--- a/src/photoalbum.sh
+++ b/src/photoalbum.sh
@@ -62,8 +62,8 @@ scalephotos () {
fi
echo "Scaling $photo to $destphoto_nospace"
- if [ -n "$GEOMETRY" ]; then
- convert -auto-orient -geometry "$GEOMETRY" "$photo" "$destphoto_nospace"
+ if [ -n "$HEIGHT" ]; then
+ convert -auto-orient -geometry "$HEIGHT" "$photo" "$destphoto_nospace"
else
convert -auto-orient "$photo" "$destphoto_nospace"
fi
@@ -140,7 +140,7 @@ albumhtml () {
declare dirname="$DIST_DIR/$thumbs_dir"
test ! -d "$dirname" && mkdir -p "$dirname"
echo "Creating thumb $DIST_DIR/$thumbs_dir/$photo"
- convert -geometry "x$THUMBGEOMETRY" "$photo" "$DIST_DIR/$thumbs_dir/$photo"
+ convert -geometry "x$THUMBHEIGHT" "$photo" "$DIST_DIR/$thumbs_dir/$photo"
dirname="$DIST_DIR/$blurs_dir"
test ! -d "$dirname" && mkdir -p "$dirname"