From 75bb3c2fe5643c9f69a6bd080cd3be8f7e2582f3 Mon Sep 17 00:00:00 2001 From: Paul Buetow Date: Sun, 20 Feb 2022 14:08:45 +0000 Subject: smaller fixes --- src/photoalbum.default.conf | 8 ++++---- src/photoalbum.sh | 6 +++--- 2 files changed, 7 insertions(+), 7 deletions(-) (limited to 'src') diff --git a/src/photoalbum.default.conf b/src/photoalbum.default.conf index 07026f3..284b3f8 100644 --- a/src/photoalbum.default.conf +++ b/src/photoalbum.default.conf @@ -1,10 +1,10 @@ # The title of the photoalbum TITLE='A simple Photoalbum' -# Thumbnail geometry -THUMBGEOMETRY=250 -# Normal geometry (when viewing photo). Uncomment, to keep original size. -GEOMETRY=1200 +# Thumbnail height geometry +THUMBHEIGHT=250 +# Normal geometry height (when viewing photo). Uncomment, to keep original size. +HEIGHT=1200 # Max previews per page. MAXPREVIEWS=100 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" -- cgit v1.2.3