dont trim banners

master
Aevann 2024-04-10 16:53:49 +02:00
parent ca104b041a
commit 93d298e8c8
1 changed files with 2 additions and 1 deletions

View File

@ -124,7 +124,8 @@ def approve_art(v, id):
filename = f"files/assets/images/{SITE_NAME}/{entry.location_kind}/{entry.id}.webp"
move(old, filename)
process_image(filename, v, resize=entry.resize, trim=True)
trim = (entry.kind == 'sidebar')
process_image(filename, v, resize=entry.resize, trim=trim)
author = request.values.get('author').strip()
author = get_user(author)