|
|
|
|
|
by christophclarke
2899 days ago
|
|
But in slack emoji, you have to modify the universal standard for the workspace in order to add those emoji, and now you're back to where you started. The whole benefit of Unicode is that anyone anywhere can see Unicode on any device that supports it, without introducing added complexity of sending the actual image over the message. |
|
It seems a lot more sensible to actually send the picture you want to send, or a link to that picture, because that doesn't need to be interpreted differently by each client... just rendered. Sending the actual image might take more space in, say, a text message, but its actual encoded size should be pretty trivial. For example, one of Twitter's 16x16 color emoji is a 400 byte SVG file. Base64-encoded that would be about 533 bytes. The standard could define the image formats accepted, with probably one ideal format for emoji (SVG) and another for memes (JPEG).
Here's another way to think of how you could implement this in a standard. Each message is multipart. The text body is the first message by default. That text can contain references to other parts. That reference could be the name of the part you want to reference in that message, and that name would only need to be unique to that message. But that name could also be, for example, a SHA hash. When you accept messages, you could store the message parts in a database with their SHA hash. When someone sends the same part again in a new message, you can just retrieve that part from your database, rather than storing the same part multiple times. This could allow you to send messages referencing the same gigantic meme file 50 times, but you only ever store it the one time, and after that you just store references to it. The standard would allow you to simply say "please reference part X in this part of the message text, and if you don't have that part yet, here it is, base64-encoded or linked via URL".
(What I just described is MIME, but you could reinvent it if you wanted people to adopt it, because people don't like adopting things that aren't new and cool)