Rules

Secret ingredients to quality software

Edit
Info

Do you use Gravatar for your profile pictures?

Created on 16 Mar 2015 | Last updated by Tiago Araujo on 04 May 2015 05:30 PM (almost 6 years ago)

To keep profile management simple and make it easier for users to have a consistent experience across applications, you should use Gravatar for showing profile images in your application.

Your Gravatar is an image that follows you from site to site appearing beside your name when you do things like comment or post on a blog.

It is simple to set up and if you are developing an MVC application, there are even several Nuget packages to make your life easier. The GravatarHelper is recommended.

Usage:

@Html.GravatarImage("MyEmailAddress@example.com", 80, new { Title = "My Gravatar", Alt = "Gravatar" })

Also, check out the Gravatar API documentation for all the options available.

The below short video shows how to get up and running with Gravatar in your ASP.NET MVC application.


We open source. This page is on GitHub