Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
lasserafn
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
6 ms
·
31.
▲
by
lasserafn
9y ago
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
32.
▲
by
lasserafn
9y ago
I love the idea! It's added to my todo :D
33.
▲
by
lasserafn
9y ago
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
34.
▲
by
lasserafn
9y ago
.. I still don't get it :D
35.
▲
by
lasserafn
9y ago
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 absolu
36.
▲
by
lasserafn
9y ago
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 to
37.
▲
by
lasserafn
9y ago
I'm a little sad that I didn't do this
38.
▲
by
lasserafn
9y ago
That's so cool!
39.
▲
by
lasserafn
9y ago
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 :)
40.
▲
by
lasserafn
9y ago
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 n
41.
▲
by
lasserafn
9y ago
Wow, that is so cool! Can't believe I haven't seen this before.
42.
▲
by
lasserafn
9y ago
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 :-)
43.
▲
by
lasserafn
9y ago
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
44.
▲
by
lasserafn
9y ago
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 use
45.
▲
by
lasserafn
9y ago
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 m
46.
▲
Show HN: Generate avatars from user initials
(ui-avatars.com)
164 points
by
lasserafn
9y ago
|
96 comments