diff options
author | tsxv478 <atci39@rambler.ru> | 2023-06-30 23:55:27 +0300 |
---|---|---|
committer | tsxv478 <atci39@rambler.ru> | 2023-06-30 23:55:27 +0300 |
commit | 2b4573777bc54823e0b59faef3f41fcd3efa0958 (patch) | |
tree | ef286b5474d2030fac9ff576e32e0dd6d296e06b | |
parent | 118f1029155f01623c0ca7c18d9359025b25fd12 (diff) |
process files in reverse order
-rwxr-xr-x | galgen | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -129,7 +129,7 @@ MY_ROWS='3' echo '<div class="row row-cols-3 no-gutters py-3">' >> "$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" |