Magnolia screenshot changes
Firing up this web site yesterday I noticed that the screenshots supplied by the ma.gnolia.com bookmark JSON feed had grown in size. After having a look at the actual feed nothing appeared to have changed. However closer inspection revealed that the supplied thumbnail URL had an additional “/160″ at the end which as it turns out is the width in pixels of the now default screenshot.
The URL’s
- New JSON thumbnail link: http://ma.gnolia.com/bookmarks/xezizop/thumbnail/160/
- Desired and previous JSON thumbnail link: http://ma.gnolia.com/bookmarks/xezizop/thumbnail/
As the feed supplies the URL I figured the easiest way to change it was in the JavaScript callback function. Using the replace function this was pretty straightforward. In the loop I use to buildup the image and description links I added the following
thumbnail = magnolias[i].thumbnail.replace(’160′,”);
Replacing the 160 with an empty string reverts the URL back to the smaller version. I had a quick look on the magnolia web site but couldn’t find any reference to the change. If anyone knows where these things are published do let me know.
Leave your comment
Post Details
- Published: February 10 2008 8:16 am
- Author: Keir Whitaker
- Filed in: Web Services
- Tags: magnolia
- Comments: none so far, why not add one?
Monthly Archives
- September 2008 (2)
- July 2008 (2)
- June 2008 (1)
- May 2008 (1)
- April 2008 (1)
- March 2008 (2)
- February 2008 (3)
Categories
- Bath (RSS) (2)
- Carsonified (RSS) (7)
- django (RSS) (1)
- ebay (RSS) (1)
- food (RSS) (1)
- fowa (RSS) (2)
- Uncategorized (RSS) (1)
- Web Development (RSS) (2)
- Web Services (RSS) (1)