diff options
| author | Paul Buetow <paul@buetow.org> | 2022-02-20 14:08:45 +0000 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2022-02-20 14:08:45 +0000 |
| commit | 75bb3c2fe5643c9f69a6bd080cd3be8f7e2582f3 (patch) | |
| tree | 6b2a908d3e8fdc4307bcccd546b65edffa349b11 /src | |
| parent | 6a12bcbd36b0cd1179104297536c7b0794ffeded (diff) | |
smaller fixes
Diffstat (limited to 'src')
| -rw-r--r-- | src/photoalbum.default.conf | 8 | ||||
| -rwxr-xr-x | src/photoalbum.sh | 6 |
2 files changed, 7 insertions, 7 deletions
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" |
