mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-02-18 21:20:39 +01:00
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…
x
Reference in New Issue
Block a user