diff options
| author | Paul Buetow <paul@buetow.org> | 2022-02-24 08:53:09 +0000 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2022-02-24 08:53:09 +0000 |
| commit | fad3ea8d270527bd9728363614ac72aeb087e9f2 (patch) | |
| tree | a9a631d47830e135b65df6b95244f1213bccf359 | |
| parent | 4e912c66e21e9a9cceb3a0b1d488136a0a3edeb3 (diff) | |
flipping the blur image
| -rwxr-xr-x | src/photoalbum.sh | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/photoalbum.sh b/src/photoalbum.sh index 05ec6fa..31c96fb 100755 --- a/src/photoalbum.sh +++ b/src/photoalbum.sh @@ -103,6 +103,7 @@ albumhtml () { # Random background image for preview page. export background_image="$(randomphoto $photos_dir)" + export show_header_bar='yes' template 'header' "$name.html" cd "$DIST_DIR/$photos_dir" && find ./ -type f | sort | sed 's;^\./;;' | @@ -119,7 +120,9 @@ albumhtml () { export prev="$name" declare name="$next" + export background_image="$(randomphoto $photos_dir)" + export show_header_bar='yes' template header "$name.html" template prev "$name.html" fi @@ -130,6 +133,7 @@ albumhtml () { # View page export background_image="$photo" + export show_header_bar='no' template header "$num-$i.html" export animation_class='animate-none' @@ -149,7 +153,7 @@ albumhtml () { dirname="$DIST_DIR/$blurs_dir" test ! -d "$dirname" && mkdir -p "$dirname" echo "Creating blur $DIST_DIR/$blurs_dir/$photo" - convert -blur 0x8 "$DIST_DIR/$thumbs_dir/$photo" "$DIST_DIR/$blurs_dir/$photo" + convert -flip -blur 0x8 "$DIST_DIR/$thumbs_dir/$photo" "$DIST_DIR/$blurs_dir/$photo" fi done |
