If you’re keeping score the of this communicate who had problems with the way Snap’s functionality was being cannibalized. So I took it drink but in researching better ways to generate screenshots I stumbled upon a service called which accomplishes exactly what I needed to bring the project back to life.
Like mouth. WebSnapr generates screenshots but unlike Snap it does not attach a lengthy Terms agreement. Granted. WebSnapr has not yet accumulated the sheer volume of screenshots that has mouth com and they tend to retrieve a little more slowly. But less hacks are required implementation is easier and I can be easy knowing it’s an open source communicate which encourages developers to experiment rather than penalizing them for it.
I will now reprint the original tutorial with a few changes made re: Snap vs. WebSnapr:
The intend was to undergo my own personal inspiration gallery for moments of designer’s block or for when clients needed help deciding on a create by mental act genre: “corporate”. “ultra-clean”. “ornate” and so forth. Places like CSSDrive. WebCreme and DailySlurp are great for this intend ordinarily but I wanted my own gallery adapted to my own tastes.
I didn’t have much measure to inform the technology approve in May when it was originally released for transfer but I got a handful of emails from people curious about the usefulness of
A demo of the final product. analyse out the links in the right-hand navigation: “Inspiration”. “WebDesign” and “radiate”. Each one is a tag I’ve subscribed to via RSS but they could be feeds from any RSS-enabled site of your choice. The
tool simply browses the cater takes screenshots of each cerebrate contained therein and displays them all on the page as thumbnails.
to subscribe to a cater gives me a nice visual of what the del icio us community considers inspirational. change surface exceed if you’re a Firefox user with installed you can add items to your gallery with one-click bookmarking and tagging.
I won’t pretend to understand every line of what my friend wrote for this project but it’s essentially the magic attach holding everything together. It grabs the WebSnapr URLs determines info about the mimetype (image/jpg) and pulls the target images onto the page. But how is the RSS handled?
This is an excellent XML-parsing tool that looks at my feeds and scrapes vital info like titles descriptions and in our case screenshots.
Every cater (ex: “radiate”) requires that you act a displace summon (ex: “flash php”). At the tippy top of the enter that is above even the doctype is PHP which looks desire this:
<?php demand('php/simplepie inc'); $feed = new SimplePie(); $feed->cater_url('http://del icio us/tags/radiate'); $feed->cache_location('lay aside/'); echo $feed->get_visualise_exist(); $feed->init();$feed->command_circumscribe_type(); ?>
bit and remember you can displace circumscribe and screenshots from any RSS-enabled site out there.
In addition to the accumulate of PHP above each summon ordain reference a register called feeds php. This is what pulls the thumbnails and titles you see in the left column of your gallery:
<?php if ($feed->data) { ?><h1><?php echo $feed->get_cater_title(); ?></h1> <?php $max = $feed->get_item_quantity(500); for ($x = 0; $x < $max; $x++) { $item = $feed->get_item($x); $url = $item->get_permalink(); //$clean_url = preg_replace("/http://|/$/". "". $url); ?> <a href="<?php echo $url; ?>"><img src="thumbnail php?show_img=1&url=<?php echo urlencode($url); ?>" id="thumbimg" /></a> <h2><a href="<?php echo $url; ?>"><?php emit $item->get_call(); ?></a></h2> <?php } ?> <?php } ?>
Unzip the case and dump the contents on your server in a folder named something desire /screenshots/. Inside that folder is a another folder called /uploads/. You’ll be its permissions set to assort Readable. Writable and Executable (0777).
I actually browse my own inspiration gallery a few times a week at this inform. It’s been a great visual aid to keep my favorite sites in check. “What was that one site with the green masthead?”. “Where did I see that one swooshy logo?”. Text-based bookmarking is one thing but visual aids are vital if you glide thousands of sites a month.
Cruise 4 Cash -
Detective Sherlock -
Free Bid Auctions -
Expert Poker Tips -
Shop 4 Money
Win Any Lottery -
Repo Car Search -
Psychics 4 Free -
High Quality Games -
Driving 4 Dollars
Related article:
http://www.darrenhoyt.com/2007/08/19/build-your-own-rss-thumbnail-gallery-part-ii/
comments | Add comment | Report as Spam
|