Fix post-crop image resize with "Never resize avatars" enabled
This commit is contained in:
parent
ef69dcd502
commit
e4e02c69f3
|
@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue