Hacker Newsnew | past | comments | ask | show | jobs | submitlogin
Show HN: I made a CLI tool that turns pixels into emojis (github.com/ahhhh6980)
105 points by caramellow on March 20, 2022 | hide | past | favorite | 31 comments


I see that you use euclidean distance of perceptual color and named your color function bad_color_distance. My only input here would be to try something like the CIEDE2000 color difference formula to see if the result can be further improved.


I am currently just looking into other color spaces, but I'll have to check that out too! Thanks! :D


Read the README, and noticed the picture. My first thought was “why don’t they show the result?”.

Then it hit me. Excellent job!


Nice! I made a doom renderer with emojis some time ago, but I decided to keep the emojis bigger, so you could identify them. But I like your approach, will definitely try in my doom renderer too: https://github.com/CrociDB/doomoji


I wonder if you could use this for some kind of "secret" message.

Or perhaps like a parity system like RAR files had back in the day to rebuild any of the other images if one were to get lost.


> I wonder if you could use this for some kind of "secret" message.

I think you’d just have a worse version of normal steganography methods


but what if your palette consisted of images with steganography :P


Mistaken PAR for RAR? In addition to mostly numbered RAR's archives, the PAR added the safety and recovery layer afiak.


Somebody is actually working on a language made entirely of emojis called "emojilang, so this could be a way to write a secret message.


Not a new idea for programming languages: https://esolangs.org/wiki/Emoji


emojicode exists


woah yeah maybe


So ... like https://github.com/schani/metapixel or any other photomosaic program, but only one tile per pixel?

*photomosaic is a trademark of Rob Silvers.


I was not aware of those when I started making this!


Feels like a good match for rust's 'fearless concurrency'.

With the large number of emojis available, do you still get decent results if you don't use any single emoji twice?


yeah this can handle several thousands of images in the palette


Or encode any data into emojis: https://github.com/tejado/BaseEmoji


It's not about encoding, moreso about mapping pixels to a palette, but thats pretty neat too :3


Hey thanks for this. Even though I don't completely understand it, it's inspired me to find something fun and smallish to create :)


I feel there's a lost opportunity in not naming this project Emosaic or even Mojaic.


Well it's not entirely oriented towards emojis. You can use any image palette to your hearts desire!


like heres a lobster made of hue shifted lobsters

(45MB image) https://ninja.dog/i8H0Uy.png


lobsters all the way down!


so cursed, i love it


IKR! I also love it. It was my first somewhat decent project in rust lol


I see, your README actually says that but I just skimmed over it and went by the HN title, my bad. Cool project BTW!


Lol, thanks!


I think Floyd-Steinberg could probably allow you to have multiple pixels per emoji.


You have some conflict markers in your README :)


Oh wow I forgot about those! Thanks haha


Lol I love this




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: