forked from MarseyWorld/MarseyWorld
make banners 1600 instead of 1200
parent
986169d9f2
commit
61df77fc83
|
@ -207,7 +207,7 @@ def comment(v):
|
||||||
if post_target.id == SIDEBAR_THREAD:
|
if post_target.id == SIDEBAR_THREAD:
|
||||||
process_sidebar_or_banner('sidebar', 400)
|
process_sidebar_or_banner('sidebar', 400)
|
||||||
elif post_target.id == BANNER_THREAD:
|
elif post_target.id == BANNER_THREAD:
|
||||||
banner_width = 1200
|
banner_width = 1600
|
||||||
process_sidebar_or_banner('banners', banner_width)
|
process_sidebar_or_banner('banners', banner_width)
|
||||||
elif post_target.id == BADGE_THREAD:
|
elif post_target.id == BADGE_THREAD:
|
||||||
try:
|
try:
|
||||||
|
|
|
@ -521,7 +521,7 @@ def upload_hole_banner(v, hole):
|
||||||
|
|
||||||
name = f'/images/{time.time()}'.replace('.','') + '.webp'
|
name = f'/images/{time.time()}'.replace('.','') + '.webp'
|
||||||
file.save(name)
|
file.save(name)
|
||||||
bannerurl = process_image(name, v, resize=1200)
|
bannerurl = process_image(name, v, resize=1600)
|
||||||
|
|
||||||
hole.bannerurls.append(bannerurl)
|
hole.bannerurls.append(bannerurl)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue