make sidebar images higher quality

master
Aevann1 2022-08-26 00:57:08 +02:00
parent 1ed41d80c0
commit 6cbae35a63
1 changed files with 1 additions and 1 deletions

View File

@ -207,7 +207,7 @@ def comment(v):
num = int(li.split('.webp')[0]) + 1 num = int(li.split('.webp')[0]) + 1
filename = f'files/assets/images/{SITE_NAME}/sidebar/{num}.webp' filename = f'files/assets/images/{SITE_NAME}/sidebar/{num}.webp'
copyfile(oldname, filename) copyfile(oldname, filename)
process_image(filename, 400) process_image(filename, 600)
elif parent_post.id == BANNER_THREAD: elif parent_post.id == BANNER_THREAD:
li = sorted(os.listdir(f'files/assets/images/{SITE_NAME}/banners'), li = sorted(os.listdir(f'files/assets/images/{SITE_NAME}/banners'),
key=lambda e: int(e.split('.webp')[0]))[-1] key=lambda e: int(e.split('.webp')[0]))[-1]