X-Git-Url: https://git.nubati.net/cgi-bin/gitweb.cgi?p=photo-tags.git;a=blobdiff_plain;f=create_thumbnails.sh;h=6bae6bbdc01836cc09518d9b85407ad58f25ba60;hp=2aa23ac6e1e645f4c6dc78c62f79fa1b73350786;hb=8c294704502f0abfb554baec7d372a9bf6a0f6c6;hpb=d057c592ea7adea11dd8584570fb70540758343a diff --git a/create_thumbnails.sh b/create_thumbnails.sh index 2aa23ac..6bae6bb 100755 --- a/create_thumbnails.sh +++ b/create_thumbnails.sh @@ -54,16 +54,14 @@ done=0 offset=0 FILES="" -while [ $done -lt 200 ] ; do - echo "skipping $offset pics, getting 100 new pics to work on..." +while [ $done -lt 100 ] ; do + echo "skipping $offset pics, getting 50 new pics to work on..." # handle white space in filename correctly FILES=`sqlite3 $LOCALDB "select replace(base_uri||'/'||filename,' ','%20') from photos limit $offset,100"` if [ "x$FILES" != "x" ] ; then #found some files, process them for file in $FILES; do - echo $file - # handle white space in file names file=${file/file:\/\/$dbprefix/} file=${file//\%20/ } @@ -100,5 +98,5 @@ while [ $done -lt 200 ] ; do fi #get ready to get the next 100 - offset=$((offset+100)) + offset=$((offset+50)) done