mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-03-19 05:20:10 +01:00
#796 Round portrait height to nearest 64
This commit is contained in:
parent
87b9da11c6
commit
49186dbfc1
@ -555,7 +555,8 @@ async function generatePicture(_, trigger, message, callback) {
|
||||
|
||||
const prevSDHeight = extension_settings.sd.height;
|
||||
if (generationType == generationMode.FACE) {
|
||||
extension_settings.sd.height = extension_settings.sd.width * 1.5;
|
||||
// Round to nearest multiple of 64
|
||||
extension_settings.sd.height = Math.round(extension_settings.sd.height * 1.5 / 64) * 64;
|
||||
}
|
||||
|
||||
try {
|
||||
|
Loading…
x
Reference in New Issue
Block a user