Collecting the Internet So You Don't Have To

We work on the Internet. As such, we are constantly consuming information. Believe me, there is a lot of it out there. Sometimes we even forget things unless we write them down. Our blog covers everything from web standards to the muppets, php to comic books, music and everything else that we find interesting. Leave us a note when you drop by.

Twitter Avatar Image Sizes

Functionality
Wil Alambre
Wil Alambre Senior Programmer
Visual Lizard
work
1 (204) 957-5520 ext:152
fax
1 (204) 957-5519
toll-free
1 (888) 237-9559
url
http://www.visuallizard.com
Wil Alambre Whiteboard Ninja

When we relaunched our site, we put some extra work in our blog. One of the ideas we added was cribbed from the brilliant folks at Happy Cog... using twitter posts as article comments.

While working on our own implementation, we had to look into Twitter's avatars. After a user uploads an image, what are some of the image sizes the Twitter system produces? Naturally this would affect how our comments looked. Though I searched the Twitter API documentation, I couldn't find any details on the subject (though I admit maybe I just didn't see it).

After some digging and experimentation, I found the following four image avatar files available for most every Twitter profile...

  • There's the full-sized image, the one originally uploaded to Twitter. This can be almost any size and does not necessarily have to be square. All the avatars that twitter creates are based on this image, and those it creates will be square.
  • There is a big version curiously labelled "_reasonably_small" that is cropped to 128x128 pixels. This is the one used in top left of a Twitter profile, by the name, location, and brief bio. The catch is that this image size may not exist if the original image is smaller than 128 pixels... instead this image will return the next size down.
  • There is a medium sized version called "_bigger" that is used in the new twitter layout, specifically in the slide-out pane when you zoom into a conversation. It is 73x73 pixels square.
  • There is a normal sized version called "_normal" that is used as the main avatar in most every twitter list on the official site. It is 48x48 pixels square.
  • Finally, there is a "_mini" sized avatar that is 24x24 pixels square. It is used in the top-right of the new twitter layout, where users access a pulldown of settings and options.

Now, this may not be all of them. And in fact, these might have changed since I originally went poking around. Does anyone have any further information?