Fix post-crop image resize with "Never resize avatars" enabled

This commit is contained in:
Cohee 2023-09-03 01:39:28 +03:00
parent ef69dcd502
commit e4e02c69f3
1 changed files with 3 additions and 0 deletions

View File

@ -1319,6 +1319,9 @@ async function tryReadImage(img_url, crop) {
if (crop.want_resize) { if (crop.want_resize) {
final_width = AVATAR_WIDTH final_width = AVATAR_WIDTH
final_height = AVATAR_HEIGHT final_height = AVATAR_HEIGHT
} else {
final_width = crop.width;
final_height = crop.height;
} }
} }