Take the 2-minute tour ×
Stack Apps is a question and answer site for apps, scripts, and development with the Stack Exchange API. It's 100% free, no registration required.

I'd like to use the user profile_image string property (which is the url of a user's avatar image e.g. http://www.gravatar.com/avatar/fbc10e7e541ba1f171a06af062bef7c0?s=128&d=identicon&r=PG) and wondered if there's any documentation about the dimensions of the avatars. I have searched both, Gravatar specs, and the stack exchange api documentation but can't find any reference.

Are all profile_images on Gravatar? And are they all the same dimensions? The few I've looked at all seem to be 80 x 80.

share|improve this question
add comment

1 Answer

up vote 2 down vote accepted

profile_image can be any size, it's a consumers responsibility to resize it.

Typically they'll be 128x128, but that's not contractual. This is a consequence of Facebook sourced profile images, like this user, whose profile_image is 180x180.

Not that the images being square is not guaranteed either, for the same reasons.

share|improve this answer
add comment

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .