Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Gravatar wrapper for ASP.NET MVC
C#
branch: master

This branch is 3 commits ahead of runeborg:master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
Gravatar.cs
README.md

README.md

Gravatar

#GravatarMvc#

> Gravatar wrapper for ASP.NET MVC. Feel free to use it any way you want.

Gravatar URL generator

Usage

// Generates a Gravatar URL for my@email.com with a size of 100x100 pixels
string url = GravatarURL.Generate("my@email.com", 100);

// Generates a 100x100 Wavatar if the Gravatar does not exist as a G-rated image    
string url = GravatarURL.Generate("my@email.com", 100, DefaultGravatar.Wavatar, GravatarRating.G);

// Same as above    
string url = GravatarURL.Generator("my@email.com").Size(100).DefaultImage(DefaultGravatar.Wavatar).Rating(GravatarRating.G).Url;

// Same as above but appends .jpg to the image name
string url = GravatarURL.Generator("my@email.com").Size(100).DefaultImage(DefaultGravatar.Wavatar).Rating(GravatarRating.G).AppendFileType().Url;
Something went wrong with that request. Please try again.