Today is Wednesday, 22nd May 2013

Twitter Image Sizes

I had to do some research on this for a project I am working on. I am calling twitter search in a javascript. The results are used to display timeline search results for the hashtag associated with a tweetup.

It is designed for live broadcasts where a live feed is needed on a projection or large LCD/Plasma display.

One of the obstacles I ran into was the size of the images returned via the API. There are technically 2 size images available for linking from a twitter profile. Those are 48×48 and 73×73.

I just added another line of code to the mix to replace the url from the JSON results with the bigger one.

var profileimage = this.profile_image_url.replace(“normal,’bigger’);

The URL for a normal sized image:

http://a1.twimg.com/profile_images/257791952/Mike_bucs_profile_normal.jpg

The URL for a ‘bigger’ image

http://a1.twimg.com/profile_images/257791952/Mike_bucs_profile_bigger.jpg

This might not seem like much but when you are dealing with a large room nearly doubling the image size, helps a lot.

Incoming search terms:

Mike

Tech writer and creator of this blog. Living the dream of self employment under the warm Florida sunshine. I write about a lot of different things, tech, internet marketing, and search engine optimization. I love helping people find useful and helpful information. You can find me on many social networks and very active in the local music scene of Tampa Bay, FL Our Sponsors help keep MichaelQuale.com Alive and improving. Connect with me on Google+

More Posts - Website - Twitter - Facebook - LinkedIn


  • http://askbargains.com/ sunjoo

    nice tip, i will try it

  • http://askbargains.com/ sunjoo

    nice tip, i will try it

  • http://askbargains.com/ sunjoo

    nice tip, i will try it

Translation


Sponsors

Top