---
title: "Generating Gravatar Image Request URLs"
slug: "generating-gravatar-image-request-urls"
updated: 2026-03-12T20:08:46Z
published: 2026-03-12T20:08:46Z
---

> ## Documentation Index
> Fetch the complete documentation index at: https://knowledge.technolutions.net/llms.txt
> Use this file to discover all available pages before exploring further.

# Generating Gravatar Image Request URLs

[Gravatar](https://en.gravatar.com/) is a service that allows users to centrally manage their avatar across several websites. Slate makes use of Gravatar in several places, such as the "Dashboard" tab on a person record. It's possible to retrieve a user's Gravatar (e.g., to display in a portal, to merge into a mailing) by passing in a hash of their email address into an image request, [which Gravatar outlines here](https://en.gravatar.com/site/implement/images/).

## Generating the Email Hash

1. Add a [subquery export](/v1/docs/subquery-exports-outputs).
2. Specify a name for the subquery export such as "email-hash".
3. Set the output setting to "Formula".
4. Add an export to get the email address.
5. Enter the following formula into the Formula box, replacing "@Email" with the name of the export you added in the above step:

```plainText
lower(convert(varchar(32), hashbytes('MD5', lower(@Email)), 2))
```
6. Click save. [![](https://cdn.us.document360.io/cd8ea7a6-07f3-4846-a554-627ac016d3e3/Images/Documentation/jkswstqgv0ok0rckst5jqmceclip0.png)](https://cdn.us.document360.io/cd8ea7a6-07f3-4846-a554-627ac016d3e3/Images/Documentation/jkswstqgv0ok0rckst5jqmceclip0.png)

## Performing the Image Request

We can now use the hashed email address above to perform the image request.

1. Add an image wherever you want the Gravatar to appear. For example, if you want the person’s Gravatar to appear in the body of a Deliver mailing, open the mailing for editing and click the button to add an image within the text.
2. Instead of browsing your database server for an image, enter the following URL into the image’s URL setting, replacing "{{email-hash}}" with the name you used in your subquery export:

```plainText
https://www.gravatar.com/avatar/{{email-hash}}
```
3. If you want to instruct Gravatar to return something if a Gravatar is not found for the hashed email address, you can modify the URL using the [d parameter](https://en.gravatar.com/site/implement/images/#default-image). The below example returns "mystery-person", or gray avatar:

```plainText
https://www.gravatar.com/avatar/{{email-hash}}?d=mp
```
4. If you want to control the size of the Gravatar, you can modify the URL using the [s parameter](https://en.gravatar.com/site/implement/images/#size). The proceeding example builds on the last *and* sizes the Gravatar to 45px by 45px:

```plainText
https://www.gravatar.com/avatar/{{email-hash}}?d=mp&s=45
```
5. Click save.
