From 2b4573777bc54823e0b59faef3f41fcd3efa0958 Mon Sep 17 00:00:00 2001 From: tsxv478 Date: Fri, 30 Jun 2023 23:55:27 +0300 Subject: process files in reverse order --- galgen | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/galgen b/galgen index 4ca4892..2fcbf06 100755 --- a/galgen +++ b/galgen @@ -129,7 +129,7 @@ MY_ROWS='3' echo '
' >> "$MY_INDEX_HTML_FILE" ## Generate Images MY_NUM_FILES=0 -for MY_FILENAME in *.[jJ][pP][gG]; do +for MY_FILENAME in $(ls -r *.[jJ][pP][gG]); do MY_FILELIST[$MY_NUM_FILES]=$MY_FILENAME (( MY_NUM_FILES++ )) $MY_CONVERT_COMMAND -auto-orient -strip -quality $MY_QUALITY -resize "$MY_HEIGHT_SMALL^>" -gravity center -crop "$MY_HEIGHT_SMALL"x"$MY_HEIGHT_SMALL"+0+0 "$MY_FILENAME" "$MY_THUMBDIR/$MY_HEIGHT_SMALL/$MY_FILENAME" -- cgit v1.2.3