Saves alt text to the image params
This commit is contained in:
parent
00e5fed522
commit
ca10f8a038
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user