t* Simple Justified Gallery
URI git clone git://git.codevoid.de/mkpicindex
DIR Log
DIR Files
DIR Refs
DIR README
---
DIR commit 3c6a6b14ca2cd0ceed96f8e4e99fee6c032c0542
DIR parent 2f5d0ad4accb113a2bc7854dd2b0fb3b08820e77
URI Author: Stefan Hagen <sh+git[at]codevoid[dot]de>
Date: Sat, 26 Oct 2019 15:24:49 +0200
Fixing cache detection
Diffstat:
M mkpicindex-static.sh | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
DIR diff --git a/mkpicindex-static.sh b/mkpicindex-static.sh
t@@ -69,7 +69,7 @@ create_thumb() {
local W="$2" # width
local H="$3" # height
local T="${F%%.*}-$H"
- if ! [ -f "$THUMB_PATH/$T" ];
+ if ! [ -f "$THUMB_PATH/$T.gif" ] || [ -f "$THUMB_PATH/$T.jpeg" ];
then
case $(printf '%s' "${F##*.}" | tr '[:upper:]' '[:lower:]') in
gif) console "Creating Thumbnail: $THUMB_PATH/$T.gif"