From e824e16f9d22b29594d1c59cc7831f840cddee5d Mon Sep 17 00:00:00 2001 From: Max Date: Mon, 20 Nov 2023 13:58:25 +0100 Subject: [PATCH] feat: try to make sure the portraits are sharp --- src/routes/api/ai/image/[name]/+server.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/routes/api/ai/image/[name]/+server.ts b/src/routes/api/ai/image/[name]/+server.ts index 926bfd2..59a6d4e 100644 --- a/src/routes/api/ai/image/[name]/+server.ts +++ b/src/routes/api/ai/image/[name]/+server.ts @@ -51,12 +51,12 @@ export const POST: RequestHandler = async ({ params, request }) => { const { hairType, hairColor, hairLength, skinColor, name } = await request.json(); - console.log(`[AI] Generating image for ${inputName} ${JSON.stringify({ hairType, hairColor, hairLength, skinColor, name })}`) + console.log(`[AI] Generating image for ${inputName} ${JSON.stringify({ hairType, hairColor, hairLength, skinColor, inputName })}`) if (!hairType || !hairColor || !hairLength) { throw new Error("Missing hairType, hairColor or hairLength"); } - const prompt = `realistic portrait oil painting of a masked ${inputName}, baroque, in the style of Charles Vess, masked ball attire, opulence, mystery, elegance, ${hairLength} ${hairType} ${hairColor} hair, ${skinColor} skin`; + const prompt = `realistic sharp portrait oil painting of a masked ${inputName}, baroque, in the style of Charles Vess, masked ball attire, opulence, mystery, elegance, ${hairLength} ${hairType} ${hairColor} hair, ${skinColor} skin`; const negativePrompt = "blurry, multiple persons, picture frame" const a = performance.now()