t* Simple Justified Gallery URI git clone git://git.codevoid.de/mkpicindex DIR Log DIR Files DIR Refs DIR README --- DIR commit 074062984b65a88aaceef197779b82e8cd65dfda DIR parent b8603d3bcd51f6b6715dc0745b81e68aa045955b URI Author: c0dev0id <sh+github[at]codevoid[dot]de> Date: Tue, 5 Jan 2021 08:06:33 +0100 Document Limitation and hide process output Diffstat: M mkpicindex-static.sh | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) --- DIR diff --git a/mkpicindex-static.sh b/mkpicindex-static.sh t@@ -14,8 +14,9 @@ printf '%s' \ # - raw only: jhead # - raw only: dcraw -# KNOWN BUGS / TODOS -# - leftover images won't be added +# LIMITATIONS +# - leftover images on the last row won't be added +# - the thumbnail cache is not cleaned automaticall # CONFIGURE t@@ -73,8 +74,6 @@ G_ROW_WIDTH=0 # combined pic width < WIDTH @ ROW_HEIGHT G_ROW_FILES="" # pipe separated files < WIDTH MORE=1 # trigger next loop -### ZE PROGAM STARTZ HERE ############################################## - # CREATE THUMBNAIL DIRECTORY mkdir -p "$THUMB_PATH" t@@ -92,11 +91,13 @@ get_width_by_height() { printf '%.0f' "$R" debug "get_width_by_height: FILE=$F TARGET_HEIGHT=$TH RET_WIDTH=$R" } + # TOO MANY CONVERT PROCSSES => WAIT thread_check() { while [ $(pgrep convert | wc -l | awk '{ print $1 }') -gt $(($PROCS-1)) ]; - do console "Process Limit ($PROCS) reached. Waiting..."; sleep 2; done + do debug "Process Limit ($PROCS) reached. Waiting..."; sleep 2; done } + # EXTACT CAMERA IMAGE FROM RAW convert_raw() { # XXX dcraw may export a PPM file.