Support more formats, change defaults

This commit is contained in:
sh+git@codevoid.de 2019-10-27 18:24:31 +00:00
parent acd31a6921
commit ec32f72617
1 changed files with 3 additions and 3 deletions

View File

@ -11,7 +11,7 @@ printf '%s' \
# CONFIGURE # CONFIGURE
TITLE="My Gallery" # browser title TITLE="My Gallery" # browser title
WIDTH=850 # how wide will the gallery be WIDTH=1000 # how wide will the gallery be
ROW_HEIGHT=180 # how high will the justified rows be? ROW_HEIGHT=180 # how high will the justified rows be?
THUMB_QUALITY=83 # quality for thumbnails THUMB_QUALITY=83 # quality for thumbnails
THUMB_PATH="thm" # relative path to thumbnail folder THUMB_PATH="thm" # relative path to thumbnail folder
@ -19,7 +19,7 @@ THUMB_PADDING="6" # image padding
# TECHNICAL STUFF # TECHNICAL STUFF
DEBUG=0 # debug output DEBUG=0 # debug output
THREADS=4 THREADS=8
# PRINT HELP / USAGE TEXT # PRINT HELP / USAGE TEXT
usage() { usage() {
@ -213,7 +213,7 @@ do
if [ -f "$F" ]; if [ -f "$F" ];
then then
case "$(printf '%s' ${F##*.} | tr '[:upper:]' '[:lower:]')" in case "$(printf '%s' ${F##*.} | tr '[:upper:]' '[:lower:]')" in
jpg|jpeg|png|gif) add_image "$F" ;; jpg|jpeg|png|gif|cr2|dng|nef) add_image "$F" ;;
*) console "Ignoring: $F" ;; *) console "Ignoring: $F" ;;
esac esac
fi fi