From 909abf71aa3cb55ea1dbcc2d89ca2de537e14634 Mon Sep 17 00:00:00 2001 From: Tangent Date: Sat, 20 Jun 2026 02:16:27 -0600 Subject: [PATCH] tweaks --- ReadMe.md | 2 ++ make_cover_briefs.lua | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/ReadMe.md b/ReadMe.md index af30d64..c5d59df 100644 --- a/ReadMe.md +++ b/ReadMe.md @@ -4,3 +4,5 @@ 3. Run `make_cover_briefs.lua`. (Relies on Ollama and `gemma4:12b-mlx` and requires at least a Mac mini M4 base model.) 4. Cover briefs will be placed in `cover_briefs`. 5. A prompt ready to paste directly into Gemini will be in `for_gemini`. An extra border is prompted for to make cropping easy to remove the Gemini watermark. + +If Gemini rejects the prompt, adding "Remove any elements that may go against guidelines before generating the image." to the opening paragraph can fix that issue. diff --git a/make_cover_briefs.lua b/make_cover_briefs.lua index 50339d4..71e09b9 100755 --- a/make_cover_briefs.lua +++ b/make_cover_briefs.lua @@ -80,7 +80,7 @@ Avoid minor plot events. local gemini_prompt = [[ -Generate an ebook cover inset within an empty white border 10% larger than the cover using the following cover brief. It should be a flat graphic design file, with no artifacts of a physical object. +Generate an ebook cover inset within an empty white border 10% larger than the cover using the following cover brief. It should be a flat graphic design file, with no artifacts of a physical object. The aspect ratio of an ebook is tall, not wide. The white border is very important. The title should only appear once on the cover. ]] @@ -196,7 +196,7 @@ tree("extracted_texts", function(file_name) -- handle too much context (works with up to 100 slices) if #outputs > 10 then local context_slices = {} - while #outputs > 2 then + while #outputs > 2 do local output_slices = {} for i = 1, 10 do if #outputs >= 1 then