diff --git a/public/characters/Aqua.png b/public/characters/Aqua.png index 39239b926..62552dd74 100644 Binary files a/public/characters/Aqua.png and b/public/characters/Aqua.png differ diff --git a/public/characters/Darkness.png b/public/characters/Darkness.png index 5f0c63ece..46f41385a 100644 Binary files a/public/characters/Darkness.png and b/public/characters/Darkness.png differ diff --git a/public/characters/Megumin.png b/public/characters/Megumin.png index 590a74dbc..2430d2c03 100644 Binary files a/public/characters/Megumin.png and b/public/characters/Megumin.png differ diff --git a/public/index.html b/public/index.html index c0330ad02..8d22f1033 100644 --- a/public/index.html +++ b/public/index.html @@ -674,10 +674,10 @@ //console.log(i+' '+chat.length); if(i == chat.length-1){ - + let mesExmString = ''; for(let iii = 0; iii < mesExamplesArray.length; iii++){//mesExamplesArray - storyString = storyString+mesExamplesArray[iii]; - if(encode(JSON.stringify(storyString+chatString+anchorTop+anchorBottom+charPersonality)).length+120 < this_max_context){ //example of dialogs + mesExmString = mesExmString+mesExamplesArray[iii]; + if(encode(JSON.stringify(storyString+mesExmString+chatString+anchorTop+anchorBottom+charPersonality)).length+120 < this_max_context){ //example of dialogs if(!is_pygmalion){ mesExamplesArray[iii] = mesExamplesArray[iii].replace(//i, 'This is how '+name2+' should talk');//An example of how '+name2+' responds } diff --git a/server.js b/server.js index 888354441..561507a07 100644 --- a/server.js +++ b/server.js @@ -385,7 +385,7 @@ async function charaWrite(img_url, data, name, response = undefined, mes = 'ok') try { // Load the image in any format sharp.cache(false); - var image = await sharp(img_url).resize(170, 234).toFormat('png').toBuffer(); + var image = await sharp(img_url).resize(400, 600).toFormat('png').toBuffer();// old 170 234 // Convert the image to PNG format //const pngImage = image.toFormat('png');