How do you generate default avatars?

Russell 2y, 352d ago [edited]

I take the first two letters of the randomly generated username and use those as the initials. If you log into Remarkbox you may set your username and enable optionally enable Gravatar from the user settings page.

The logic comes from invatar which I pulled into my codebase so that I may inline embed the SVG into an HTML img tag. All you have to do is "encode" or "quote" the SVG. For example: <img src="data:image/svg+xml;charset=utf-8,encoded-svg-here">

What's next? verify your email address for reply notifications!

Leave a comment to get the conversation going!