HNHacker News
TopNewBestAskShowJobs

lasserafn

98 karma · joined October 7, 2017

just building random stuff for free
submissionscomments
lasserafn··on Tweet.new
loving this, and we should all do more stuff because 'its funny' - would make the world a better place
lasserafn··on Flashcard maker hosted on CF Pages, no server no database
Localstorage-based flashcard maker hosted on Cloudflare Pages for $0, no server rendering etc.
lasserafn··on Show HN: Generate avatars from user initials
It’s transparent to me, weird.. I’ll have to look into this. Thanks for feedback :)
lasserafn··on Show HN: Generate avatars from user initials
I’m so glad to hear such feedback! Thanks!
lasserafn··on Show HN: Generate avatars from user initials
Ouch, Yeah appears pretty obvious. Will add some rounding to the sizes or similar
lasserafn··on Show HN: Generate avatars from user initials
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

lasserafn··on Show HN: Generate avatars from user initials
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

lasserafn··on Show HN: Generate avatars from user initials
Thanks! :) hoping to support everything possible
lasserafn··on Show HN: Generate avatars from user initials
Product Hunt: https://www.producthunt.com/posts/ui-avatars
lasserafn··on Show HN: Generate avatars from user initials
Thanks for letting me know! I will stuff different languages over the coming months to better manage such things :) didn’t know that
lasserafn··on Show HN: Generate avatars from user initials
However interest is subjective, and it’s obviously interesting to some, considering the traction it’s gotten.
lasserafn··on Show HN: Generate avatars from user initials
I dont get it either :) Yes, that’s basically all it does.

I don’t think theres anything to it

lasserafn··on Show HN: Generate avatars from user initials
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

lasserafn··on Show HN: Generate avatars from user initials
also, Remarkbox looks nice
lasserafn··on Show HN: Generate avatars from user initials
Super cool! I like the SVG support part
lasserafn··on Show HN: Generate avatars from user initials
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
lasserafn··on Show HN: Generate avatars from user initials
Thank you! :)
lasserafn··on Show HN: Generate avatars from user initials
Haha, they're so great!

There's also this one: http://avatars.adorable.io

lasserafn··on Show HN: Generate avatars from user initials
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.

lasserafn··on Show HN: Generate avatars from user initials
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
lasserafn··on Show HN: Generate avatars from user initials
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
lasserafn··on Show HN: Generate avatars from user initials
Wow, I expected something else. That is actually interesting!
lasserafn··on Show HN: Generate avatars from user initials
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

lasserafn··on Show HN: Generate avatars from user initials
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

lasserafn··on Show HN: Generate avatars from user initials
I love the idea! It's added to my todo :D
lasserafn··on Show HN: Generate avatars from user initials
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

lasserafn··on Show HN: Generate avatars from user initials
.. I still don't get it :D
lasserafn··on Show HN: Generate avatars from user initials
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

lasserafn··on Show HN: Generate avatars from user initials
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.

lasserafn··on Show HN: Generate avatars from user initials
I'm a little sad that I didn't do this
Page 1 of 2Next →