Skip to content

Gravatar Support

Phillip Haydon edited this page Aug 2, 2013 · 1 revision

Snow supports adding Gravatar Images, if you're using the Default or Per-Post email properties, you can invoke the extension method: EmailToGravatar()

Generating the Image Uri

If your Default settings has the following property:

"email": ""

You can use in your views:


This will generate a image uri like:

The method has an override to pass in the size, should you want to define an image as 200x200 pixels, you can pass in 200 as the parameter.


Will result in

Razor Helper for an HTML IMG tag

You can also use the Razor Helper to create an image tag for you.

By calling:


You will get:

<img src="" />

You can’t perform that action at this time.