Generate PNG avatars.

This commit is contained in:
Jimmy Zelinskie 2014-11-26 16:52:24 -05:00
parent eab79ff1ad
commit 8591889c62

View file

@ -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