๐Ÿ‘ฝ elektito

So over the weekend I added "image search" to my search engine, "image" here meaning ascii art! You can try it here: gemini://gemplex.space/image/search.

There's also an option to show a random ascii art: gemini://gemplex.space/image/random

2 years ago ยท ๐Ÿ‘ gritty, mozz, devyl, unknownbox, johano

Links

gemini://gemplex.space/image/search

gemini://gemplex.space/image/random

Actions

๐Ÿ‘‹ Join Station

3 Replies

๐Ÿ‘ฝ eaplmx

Ha... Neat! gemini://gemplex.space/image/search?welcome ยท 2 years ago

gemini://gemplex.space/image/search?welcome

๐Ÿ‘ฝ elektito

It's a simple heuristic, based on stuff like the ratio of non-alphanumeric characters. It's not perfect, but it mostly works. You can take a look at the source if you want. https://git.sr.ht/~elektito/gemplex ยท 2 years ago

https://git.sr.ht/~elektito/gemplex

๐Ÿ‘ฝ mozz

Awesome! How are you determining if the preformatted block is ascii-art or something else like code? ยท 2 years ago