Generate PNG avatars.
This commit is contained in:
parent
eab79ff1ad
commit
8591889c62
1 changed files with 1 additions and 1 deletions
|
@ -191,7 +191,7 @@ def render_avatar(avatar_hash, headers):
|
|||
except ValueError:
|
||||
size = 16
|
||||
|
||||
generated = Avatar.generate(size, avatar_hash)
|
||||
generated = Avatar.generate(size, avatar_hash, "PNG")
|
||||
resp = make_response(generated, 200, {'Content-Type': 'image/png'})
|
||||
resp.headers.extend(headers)
|
||||
return resp
|
||||
|
|
Reference in a new issue