diff --git a/README b/README index 051daa8..1ce2fc5 100644 --- a/README +++ b/README @@ -15,8 +15,4 @@ This will remove all autogenerated files except the generated thumbnail files. Configuration can be done by altering `mkpicindex.sh`. Configuration -variables are at the top. - -You can create the files HEADER and FOOTER, which will be included -above and below the gallery. - +variables are at the top (after the license). diff --git a/mkpicindex.sh b/mkpicindex.sh index 4aa68ac..360a5e1 100755 --- a/mkpicindex.sh +++ b/mkpicindex.sh @@ -28,13 +28,13 @@ printf '%s' \ ' > LICENSE # CONFIGURE -GALLERY_TITLE="My Gallery" -GALLERY_ROW_HEIGHT=150 -BODY_STYLE="color:orange; background:black;" -THUMBNAIL_QUALITY=83 -THUMBNAIL_PATH="thm" -INCLUDE_FOOTER="FOOTER" -INCLUDE_HEADER="HEADER" +GALLERY_TITLE="My Gallery" # browser title +GALLERY_ROW_HEIGHT=150 # how high will the justified rows be? +BODY_STYLE="color:orange; background:black;" # +THUMBNAIL_QUALITY=83 # quality for thumbnails +THUMBNAIL_PATH="thm" # relative path to thumbnail folder +INCLUDE_HEADER="HEADER" # file with html to include before gallery +INCLUDE_FOOTER="FOOTER" # file with html to include after gallery ### ZE PROGAM STARTZ HERE ############################################## cleanup() { @@ -65,7 +65,7 @@ printf '%s%s%s%s%s\n' \
' -# RESCALE AND PRINT IMAGE SOURCE +# RESCALE AND ADD IMAGE # PARAM 1: original # 2: thumbnail_basename # 3: thumbnail_format (extension) @@ -76,7 +76,7 @@ add_image() { printf '%s\n' "Adding image: $FILE" >&2 if ! [ -f "$THUMB.$EXT" ] && [ "$FILE" != "$THUMB.$EXT" ]; then convert -quality $THUMBNAIL_QUALITY -sharpen 2x2 \ - -coalesce -resize 1600x$GALLERY_ROW_HEIGHT\> \ + -coalesce -resize 6000x$GALLERY_ROW_HEIGHT\> \ -deconstruct "$FILE" "${THUMB}_tmp.$EXT" && \ mv "${THUMB}_tmp.$EXT" "$THUMB.$EXT" fi @@ -84,7 +84,7 @@ add_image() { | awk '{ print "width="$1" height="$2 }')" printf ' %s\n' "" printf ' %s\n' "" - printf ' %s\n' "" + printf ' %s\n' '' } ### MAIN LOOP ##########################################################