You should consider using JavaScript to detect load errors on images and dynamically updating the src. If the image fails to load (which this one will because the filetype is pngx) the src is replaced with the redirect API URL.
<img src='http://a0.twimg.com/profile_images/1117369624/new-border.pngx' width='48' height='48' data-screen-name='abraham' class='twitter-profile-image' onerror='this.src=" http://api.twitter.com/1/users/profile_image/" + this.getAttribute("data-screen-name")'> Caveats: Tested only in Chrome, Firefox, Opera, and Safari. You should move the JS to a function attached to the twitter-profile-image class so it works on all profile images. Optionally you can also send a ping to your server so it knows to update the cached URL. Abraham ------------- Abraham Williams | Hacker Advocate | http://abrah.am Update: http://blog.abrah.am/2010/10/organizing-my-life.html @abraham | http://projects.abrah.am | http://blog.abrah.am This email is: [ ] shareable [x] ask first [ ] private. On Mon, Oct 11, 2010 at 16:22, gabrielu <[email protected]> wrote: > Wow! Thank you all for the responses. That was fast. @Peter Denton > I really appreciate your reply. It was very informative. I'm going > to use that but with PHP to store the user's profile image URL. Thank > you all again. > > -- > Twitter developer documentation and resources: http://dev.twitter.com/doc > API updates via Twitter: http://twitter.com/twitterapi > Issues/Enhancements Tracker: > http://code.google.com/p/twitter-api/issues/list > Change your membership to this group: > http://groups.google.com/group/twitter-development-talk > -- Twitter developer documentation and resources: http://dev.twitter.com/doc API updates via Twitter: http://twitter.com/twitterapi Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list Change your membership to this group: http://groups.google.com/group/twitter-development-talk
