A script to generate Chafa galleries for gmi

Hey! I can only take credit for the idea, but I am sharing a little script cobbled together with artificial help that generates a little .gmi ANSI gallery out of images in a directory.

An example:

$ ls

something.jpeg

something_else.jpeg

testing.jpeg

another.jpeg

somefile.jpeg

$ ./chafa-gmi-gallery-gen.sh

Enter gallery name or leave blank to use the current date ('2024-04-20'): test

Enter image file extension(s) to look for or leave blank for all images (e.g., 'JPG' or 'png, jpg, gif, jpeg'): jpeg

Processing...

$ cd test

$ ls

index.gmi test-1.gmi test-2.gmi test-3.gmi test-4.gmi test-5.gmi

=> You need chafa installed.

=> Chafa gallery generator for .gmi | An example gallery

#ansi #chafa #gallery #script

=> Posted in: s/ascii-art
=> ๐Ÿ’€ requiem

2024-04-20 ยท 9 months ago ยท ๐Ÿ‘ mozz, norayr, gemalaya, Nono

4 Comments โ†“

=> ๐Ÿ’€ requiem [OP] ยท 2024-04-20 at 20:22:

Some more notes:

And let me know what you think.

=> ๐Ÿš€ stack ยท 2024-04-20 at 23:18:

What is a chafa?

=> ๐Ÿ’€ requiem [OP] ยท 2024-04-20 at 23:28:

It's in the links, but Chafa is a command line tool to convert images to ANSI / ASCII art for displaying in the terminal. Pretty neat. Many Gemini clients like Offpunk rely on it.

=> ๐Ÿ•น๏ธ skyjake [...] ยท 2024-04-23 at 04:10: | โ€” A Reply by @blah_blah_blah

Proxy Information
Original URL
gemini://bbs.geminispace.org/s/ascii-art/16264
Status Code
Success (20)
Meta
text/gemini; charset=utf-8
Capsule Response Time
44.390937 milliseconds
Gemini-to-HTML Time
1.221869 milliseconds

This content has been proxied by September (3851b).