HNHacker News
TopNewBestAskShowJobs

lasserafn

98 karma · joined October 7, 2017

just building random stuff for free
submissionscomments
lasserafn··on Show HN: Generate avatars from user initials
That's so cool!
lasserafn··on Show HN: Generate avatars from user initials
I'm working to support Chinese as well, preferably would be support for all languages. Sadly not all fonts support each character so I've been resorting to use different fonts for different unicode scripts :)
lasserafn··on Show HN: Generate avatars from user initials
I'd absolutely recommend anyone, that has the ability, to generate them using HTML and CSS, it's way faster. You could even use the core package the generate the initials (as it's a little more than just each letter of each name)
lasserafn··on Show HN: Generate avatars from user initials
Wow, that is so cool! Can't believe I haven't seen this before.
lasserafn··on Show HN: Generate avatars from user initials
It's funny you'd say this! I remember when I launched the core package on Github, someone suggested colors to be generated from the name or initials. I will look into this, it would be pretty neat! Thanks for the feedback :-)
lasserafn··on Show HN: Generate avatars from user initials
Ut stores the avatars on the server, cached by all parameters (not the name, but the generated initials) to avoid generating them again. Also some response headers are set to ask browsers to cache the response. I would also recommend users of this to download the avatars, as you suggested, especially to ensure fastest possible response rates.

Actually there is no rate limiting, but seeing just how many visitors this HN post has gotten, I may have to add some sort of limiting.

I haven't really figured exactly what I'm going to do regarding limiting and servers. Currently I'm setting up servers in each region my provider supports, to fix latency issues, and spread the load

lasserafn··on Show HN: Generate avatars from user initials
I absolutely agree, I would also recommend anyone to use CSS and HTML, it's pretty straightforward.

However for those that: 1) Don't want to 2) Don't know how to 3) Required rendering besides HTML views

This can be pretty useful :-) I do agree with you. I would actually consider adding SVG support to this as well.

lasserafn··on Show HN: Generate avatars from user initials
Thank you!

It handles last names and middle names as such:

- your example would be JS, however if you specify a desired length of 3, it would be: JAS.

I actually haven’t tested commas and such but I will definitively add this! Added it to my todo

← PreviousPage 2 of 2