From e4e02c69f33eac51a94145fe024bc7374a0b0aba Mon Sep 17 00:00:00 2001 From: Cohee <18619528+Cohee1207@users.noreply.github.com> Date: Sun, 3 Sep 2023 01:39:28 +0300 Subject: [PATCH] Fix post-crop image resize with "Never resize avatars" enabled --- server.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/server.js b/server.js index 45e596bfa..bff3c1b95 100644 --- a/server.js +++ b/server.js @@ -1319,6 +1319,9 @@ async function tryReadImage(img_url, crop) { if (crop.want_resize) { final_width = AVATAR_WIDTH final_height = AVATAR_HEIGHT + } else { + final_width = crop.width; + final_height = crop.height; } }