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 | |
| parent | 6a12bcbd36b0cd1179104297536c7b0794ffeded (diff) | |
smaller fixes
| -rw-r--r-- | .version | 2 | ||||
| -rw-r--r-- | share/templates/default/header.tmpl | 4 | ||||
| -rw-r--r-- | src/photoalbum.default.conf | 8 | ||||
| -rwxr-xr-x | src/photoalbum.sh | 6 |
4 files changed, 12 insertions, 8 deletions
@@ -1 +1 @@ -0.4.5 +0.5.0 diff --git a/share/templates/default/header.tmpl b/share/templates/default/header.tmpl index c0f81fb..ae1368d 100644 --- a/share/templates/default/header.tmpl +++ b/share/templates/default/header.tmpl @@ -38,6 +38,10 @@ cat <<END padding: 5px; } + img.thumb { + height: ${THUMBHEIGHT}px; + } + img.thumb:hover { -webkit-transform: scaleX(-1); transform: scaleX(-1); 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" |
