From 552505fa535ed33d2728978e8f027f03cbdee3f3 Mon Sep 17 00:00:00 2001 From: Sam Date: Sun, 20 Nov 2022 01:54:47 +0100 Subject: [PATCH] fix(backend): actually resize avatars on upload --- backend/db/avatars.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/backend/db/avatars.go b/backend/db/avatars.go index adbccc2..c4efa4e 100644 --- a/backend/db/avatars.go +++ b/backend/db/avatars.go @@ -14,8 +14,8 @@ import ( ) var ( - webpArgs = []string{"-quality", "50", "webp:-"} - jpgArgs = []string{"-quality", "50", "jpg:-"} + webpArgs = []string{"-resize", "256x256", "-quality", "50", "webp:-"} + jpgArgs = []string{"-resize", "256x256", "-quality", "50", "jpg:-"} ) const ErrInvalidDataURI = errors.Sentinel("invalid data URI")