From ca10f8a0381e526afcda3ef6f6cc868f3c18994a Mon Sep 17 00:00:00 2001 From: Mike Lynch Date: Sun, 6 Apr 2025 23:03:48 +0000 Subject: [PATCH] Saves alt text to the image params --- poptimal.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/poptimal.js b/poptimal.js index aefa4bc..44b3dbf 100644 --- a/poptimal.js +++ b/poptimal.js @@ -232,7 +232,6 @@ async function main() { const colourf = params.palette === 'grayscale' ? cf['grayscale'] : cf['colour']; const namer = new ColourNamer(); - console.log(`Loading colours ${colourf}`); await namer.load_colours(colourf); @@ -255,7 +254,7 @@ async function main() { // so we don't include obscured colours const hist = await get_histogram(imgfile); const alt_text = image_description(namer, params, hist); - + params.alt_text = alt_text; await save_params(paramsfile, params); console.log(alt_text); console.log(imgfile);