adjunct.gravatar¶
Gravatar support.
For information on the parameters, see the SDK.
make_gravatar(email, size=64, default='identicon', rating='pg')
¶
Generate a gravatar image URL.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
email
|
str
|
an email address |
required |
size
|
int
|
the size of the gravatar to generate |
64
|
default
|
str
|
default image to generate |
'identicon'
|
rating
|
str
|
the rating associated with the image |
'pg'
|
Returns:
| Type | Description |
|---|---|
str
|
A Gravatar URL. |
make_gravatar_img(email, size=64, default='identicon', rating='pg')
¶
Generate a Gravatar <img> tag for the given email address.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
email
|
str
|
an email address |
required |
size
|
int
|
the size of the gravatar to generate |
64
|
default
|
str
|
default image to generate |
'identicon'
|
rating
|
str
|
the rating associated with the image |
'pg'
|
Returns:
| Type | Description |
|---|---|
str
|
An |