Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Show avatars #5

Open
nickserv opened this issue Mar 7, 2015 · 0 comments
Open

Show avatars #5

nickserv opened this issue Mar 7, 2015 · 0 comments

Comments

@nickserv
Copy link
Member

nickserv commented Mar 7, 2015

I would like to display avatars in a similar way that GitHub does. This would be especially useful for the scoreboard.

The GitHub API has a field on GET /users/:username that gives us a user's avatar on GitHub. On their site, they append &s=40 to the URL (to scale it to 40 pixels on the server side), set the image size to 20 pixels, and add a border radius of 3 pixels. Note that the image size is twice as large in each dimension as it is on the page to support retina displays (and other displays with high pixel densities).

@nickserv nickserv changed the title Add avatars Show avatars Mar 7, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant