From 27bccdea5d5e376fdecb27b03f692408a2cc1f99 Mon Sep 17 00:00:00 2001 From: syn Date: Mon, 23 Mar 2020 10:42:48 +0300 Subject: Fix image serving * Fix hardcoded url * Improve resizing --- app/views.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'app/views.py') diff --git a/app/views.py b/app/views.py index fcd3818..ef3bbd0 100644 --- a/app/views.py +++ b/app/views.py @@ -29,13 +29,13 @@ async def index(ctx): @db_route('/i/') async def raw_image(ctx, url): async with NGXImage(blure.url.to_id(url)) as image: - return image.orig() + return image.send_image('o') @db_route('/t/') async def thumb_image(ctx, url): async with NGXImage(blure.url.to_id(url)) as image: - return image.orig() + return image.send_image('m') @db_route('/p/') -- cgit v1.2.1-18-gbd029