Closed niklaswa closed 4 years ago
Hello and thank you. Have you considered that PNG images are much bigger than WEBP? Eg. my own discord avatar has 150 KB in WEBP format and 1.8 MB in PNG format. That might be a little problematic for mobile data plans. I think that a configuration option to change formats would be better approach.
That's true. Maybe that would be better. In general, the avatar url should use this function, so GIF avatars are supported too. But I would have to deal more with the architecture of Python applications to understand exactly where to do what.
I implemented it. 😄
Good job. Have you tested it? I had some problems with serialization while passing url to watcher directly like you do. Or does avatar_url_as
method escapes the URL somehow?
I tested it with users with default avatars, normal avatars and animated avatars in Chrome and Safari and had no problems.
Yea I just tested it myself and got no issues. Thank you for your contribution. 🙂
closes #9