Commit c2a4230b by sikang

test

parent fc95516b
......@@ -36,7 +36,7 @@ class ImageGarble:
for root, dirs, files in os.walk("%s/%s/res/" % (config['root'], main_dir)):
#改变现有图片MD5
for file in files:
if file.endswith(".png") or file.endswith(".webp"):
if file.split(".")[0] not in self.__used_names and (file.endswith(".png") or file.endswith(".webp")):
path = os.path.join(root,file)
try:
img = Image.open(path)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment