aboutsummaryrefslogtreecommitdiff
path: root/modules/extras.py
diff options
context:
space:
mode:
authorwinterspringsummer <linoo@naver.com>2022-10-21 09:23:13 +0900
committerAUTOMATIC <16777216c@gmail.com>2022-10-21 09:00:46 +0300
commit9d71eef02e7395e179b8d5e61e6d91ddd8928d2e (patch)
tree1d96f0b03cf8ccef1b41e0b7fc932f8dd202a707 /modules/extras.py
parenta13c3bed3cec27afe3c015d3d62db36e25b10d1f (diff)
sort file list in alphabetical ordering in extras
Diffstat (limited to 'modules/extras.py')
-rw-r--r--modules/extras.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/extras.py b/modules/extras.py
index ac85142c..22c5a1c1 100644
--- a/modules/extras.py
+++ b/modules/extras.py
@@ -39,7 +39,7 @@ def run_extras(extras_mode, resize_mode, image, image_folder, input_dir, output_
if input_dir == '':
return outputs, "Please select an input directory.", ''
- image_list = [file for file in [os.path.join(input_dir, x) for x in os.listdir(input_dir)] if os.path.isfile(file)]
+ image_list = [file for file in [os.path.join(input_dir, x) for x in sorted(os.listdir(input_dir))] if os.path.isfile(file)]
for img in image_list:
try:
image = Image.open(img)