From e34f3454e94c22cb5fe873951eee48ee75bf21fb Mon Sep 17 00:00:00 2001 From: Joh Dokler Date: Tue, 15 Dec 2020 16:17:54 +0100 Subject: [PATCH] Better thumbnail crop size --- sledilnik/posts/api.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sledilnik/posts/api.py b/sledilnik/posts/api.py index 3b6e509..842ef84 100644 --- a/sledilnik/posts/api.py +++ b/sledilnik/posts/api.py @@ -35,6 +35,6 @@ def dehydrate(self, bundle): translation.activate(lang) if bundle.obj.image: - bundle.data["image"] = bundle.request.build_absolute_uri(get_thumbnail(bundle.obj.image, "800x600").url) + bundle.data["image"] = bundle.request.build_absolute_uri(get_thumbnail(bundle.obj.image, "800x810").url) return bundle