You are reading Magnolia screenshot changes, a journal article published on February 10 2008 and written by Keir Whitaker

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

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

Search Five&Lime

Post Details

Monthly Archives

Categories