HOw to obtain a site thumnail

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
Live24x7
Forum Contributor
Posts: 194
Joined: Sat Nov 19, 2011 9:32 am

HOw to obtain a site thumnail

Post by Live24x7 »

My requirement is this:

when a user submits a URL - i need to fetch the thumbnail of the site and display it.

How to do this ?
User avatar
requinix
Spammer :|
Posts: 6617
Joined: Wed Oct 15, 2008 2:35 am
Location: WA, USA

Re: HOw to obtain a site thumnail

Post by requinix »

Use a third-party service for it. Doing it yourself requires a server that has a GUI installed (eg, Windows, Ubuntu non-server version) as well as some browser and a scriptable screen-capture program.
User avatar
Grizzzzzzzzzz
Forum Contributor
Posts: 125
Joined: Wed Sep 02, 2009 8:51 am

Re: HOw to obtain a site thumnail

Post by Grizzzzzzzzzz »

Many pay for services out there you could use, or, depending on your server capabilities, you could try and set something up with something like Selenium - Taking screenshots with Selenium
Live24x7
Forum Contributor
Posts: 194
Joined: Sat Nov 19, 2011 9:32 am

Re: HOw to obtain a site thumnail

Post by Live24x7 »

thanks to both of you.. i will try selenium - looks like doable :)
Post Reply