forked from MarseyWorld/MarseyWorld
make sidebar images higher quality
parent
1ed41d80c0
commit
6cbae35a63
|
@ -207,7 +207,7 @@ def comment(v):
|
|||
num = int(li.split('.webp')[0]) + 1
|
||||
filename = f'files/assets/images/{SITE_NAME}/sidebar/{num}.webp'
|
||||
copyfile(oldname, filename)
|
||||
process_image(filename, 400)
|
||||
process_image(filename, 600)
|
||||
elif parent_post.id == BANNER_THREAD:
|
||||
li = sorted(os.listdir(f'files/assets/images/{SITE_NAME}/banners'),
|
||||
key=lambda e: int(e.split('.webp')[0]))[-1]
|
||||
|
|
Loading…
Reference in New Issue