Re:Show HN: A dot matrix rendered using Braille characters
by nomagicbullet on Monday August 16, 2021 @03:49PM
(#28202061)
Nice idea. I'd recommend implementing a demo image on the site. Not everybody will go through the trouble of uploading their own file to test out the project.
Re:Show HN: A dot matrix rendered using Braille characters
by Cyberdog on Monday August 16, 2021 @04:05PM
(#28202249)
Yeah, once upon a time I had an idea of having a drop-down menu which would have four or five sample images you could select from to instantly load them into place. I can't remember why I didn't end up implementing that. But unless a new client drops out of the sky in the next few days, I'm going to have some spare time later this month, so perhaps I'll take your comment as motivation to hack that into place. :)
Re:Show HN: A dot matrix rendered using Braille characters
by timfi on Monday August 16, 2021 @03:53PM
(#28202114)
Very nice! I was thinking of adding something akin to this as well, at least in terms of image dithering. :)
But I'm still torn as the well behaved python programmer in me wants to add pillow as a dependency for that and the not so well behaved one wants *0* dependencies. I think I'll add it as an extra-dep when get around to it.
Re:Show HN: A dot matrix rendered using Braille characters
by Cyberdog on Monday August 16, 2021 @04:07PM
(#28202269)
Yeah, I get it - I made a point of building this with no jQuery or other JS dependencies just for more experience in writing "pure" vanilla JS. But of course one of the ways I can get away with that is that the browser already gives me a huge "standard library" of sorts for doing hard things like reading compressed image formats…
I'm not a JS expert so there's probably room for improvement/modernization code-wise but I think it works pretty well and I'm happy with the results.