More resolution for images by using additional characters from Block Elements, Braille, Box drawing etc #522
TiagoTiago
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am aware there would still be a restriction of just two colors per "cell", but the added details could compensate to some extent. There's so much stuff on Unicode that could be used to obtain higher resolutions; the extra contrast and shading possibilities would likely provide much better image quality even if the number of colors per cell itself can't be increased.
Even in Block Elements itself, you already got all the stuff for 4x4, "▞", "▟" etc, and 8 levels of horizontal and vertical fills
I haven't studied the code so I dunno the details of the current implementation; but I imagine a possible simple implementation would be to simply compare each image cell downscaled to the pixel resolution per character at the require proportion, and run thru the preset characters list looking for the least difference. Though, I'm sure there are better algorithms out there.
This of course would need to be optional since I imagine in some weaker systems the search might take too much processing time. And it would probably be a good idea to let people chose which sets of characters to enable since not all terminals or fonts will necessarily render everything well.
Beta Was this translation helpful? Give feedback.
All reactions