loving this, and we should all do more stuff because 'its funny' - would make the world a better place
HN user
lasserafn
just building random stuff for free
Localstorage-based flashcard maker hosted on Cloudflare Pages for $0, no server rendering etc.
It’s transparent to me, weird.. I’ll have to look into this. Thanks for feedback :)
I’m so glad to hear such feedback! Thanks!
Ouch, Yeah appears pretty obvious. Will add some rounding to the sizes or similar
Absolutely, but it’s not that simpel, it’s made to be flexible and handle different logic. Not that it’s magic by any means, it’s fairly simple but you’d want to generate the initials on the server anyway, to acomplish similar results
For example, it takes first letter of first name, and 2 letters from last name if only two names supplied and desired length is 3.
However if 3 names are supplied, it uses a letter from each name.
It’s not magic, but doing it in CSS wouldn’t be easy, I imagine
It’s made to be a gravatar fallback :)
The reason its not CSS is because this api generates the initials for you.
CSS is way faster, so I’d recommend that
Thanks! :) hoping to support everything possible
Product Hunt: https://www.producthunt.com/posts/ui-avatars
Thanks for letting me know! I will stuff different languages over the coming months to better manage such things :) didn’t know that
However interest is subjective, and it’s obviously interesting to some, considering the traction it’s gotten.
I dont get it either :) Yes, that’s basically all it does.
I don’t think theres anything to it
Thanks of adding this!:D
https://ui-avatars.com/api/?name=马云马云&length=4 Maybe this works?
Anyway, actually one could add &no-cache and it would ignore cache, I forgot that part
also, Remarkbox looks nice
Super cool! I like the SVG support part
Absolutely, I've played around with this. There are tons of open source libraries to determine gender from name. Obviously it cannot be 100% correct, but it can provide a guess
Thank you! :)
Haha, they're so great!
There's also this one: http://avatars.adorable.io
In regard to latest edit with Twitter
I think it's interesting how much thought goes into default avatars, and that it can be used as a marketing tactic. Thanks for providing link to Twitter as well. Guess I'll have to think more about it in the future.
Yeah, it absolutely is (ui-avatars). I think its a neat little think to act as fallback for gravatar, but I totally agree that it's overkill
Didn't consider that aspect. That would be very cool! Okay, thats a little more of a challenge than generating some initials and making a circle, lol. I will investigate, sadly I'm not the most creative person, so wouldn't be as cool as https://robohash.org
Wow, I expected something else. That is actually interesting!
Thanks you!
Honestly? Nothing really. Well, you don't have to think about the code part but besides that? Nothing. Actually it would be more performant to use CSS and HTML (or SVG?) to generate avatars. I have a core package (used to generate the initials), and if used that with html, it would be far better.
I use the service for our internal products, as gravatar fallbacks
I built this service (or, the core GitHub package) because we needed it internally, and someone requested an API of this, so I quickly threw together this :-).
Also, I think theres a lot of those unique avatar generators out there (even one in the comments here), and I like them but they're not personal like your initials are. Also, for example, in accounting software (where I needed it internally) a monster or space invaders didn't fit with the audience.
I do however like your idea! Wouldn't be hard do create either. Who knows, that could be version 2
I love the idea! It's added to my todo :D
Solid points :D Sadly theres not much I can do (I think?) to make people believe that there is privacy.
I guess generating them locally (or using CSS) would be the best option for anyone concerned with privacy
.. I still don't get it :D
Absolutely, I'd probably also just use CSS and HTML and use the core package: https://github.com/lasserafn/php-initials to generate the initials, it's faster and you won't depend on third-party.
I absolutely see your point, that's also why I open-sourced the code (see footer), but obviously I could be using different code or track it on the server (nginx or similar?). This is not the case, but I understand. Another option is to use the core generator (which is also open sourced) so that the generation happens locally :) But then again, CSS+HTML does not require any generation
Chinese support has been added, good catch! I actually thought I had it covered.
However due to caching, the request above will not work before tomorrow. You will have to input another name. I apologize.
I may clear the image cache later today just to fix any issues related to this.
I'm a little sad that I didn't do this