Page 1 of 1

how can create website thumbnail in PHP ?

Posted: Wed Oct 15, 2008 12:24 pm
by youropensource
Is any possibility to create a thumbnail of the website in PHP ?

Regards,
YourOpenSource.Com

Re: how can create website thumbnail in PHP ?

Posted: Wed Oct 15, 2008 2:43 pm
by requinix
Possible, yes.

You have three options:
1) Write your own code to take HTML and render it on an image, not to mention handling images and CSS. You don't want to do that.
2) Develop OS-specific code to fire up an installed browser and take a screenshot. Difficult on Windows, easier on 'nix if it has the right stuff installed (eg, X11 and Gnome/KDE/etc, and a browser of course). Not fun.
3) Give the work to somebody else. Perhaps a PHP extension (that I've never heard of), an application, or a web service.

That last option is your best shot.

Re: how can create website thumbnail in PHP ?

Posted: Wed Oct 15, 2008 3:11 pm
by omika
Try class.upload http://www.verot.net/php_class_upload.htm by Colin Verot.

Re: how can create website thumbnail in PHP ?

Posted: Wed Oct 15, 2008 3:16 pm
by onion2k
omika wrote:Try class.upload http://www.verot.net/php_class_upload.htm by Colin Verot.
That can't take screenshots of websites which is essentially what the original poster is asking for.

Re: how can create website thumbnail in PHP ?

Posted: Wed Oct 15, 2008 4:15 pm
by omika
My bad. Morningitis :?

Re: how can create website thumbnail in PHP ?

Posted: Wed Oct 15, 2008 4:29 pm
by youropensource
tasairis wrote:Possible, yes.

You have three options:
1) Write your own code to take HTML and render it on an image, not to mention handling images and CSS. You don't want to do that.
2) Develop OS-specific code to fire up an installed browser and take a screenshot. Difficult on Windows, easier on 'nix if it has the right stuff installed (eg, X11 and Gnome/KDE/etc, and a browser of course). Not fun.
3) Give the work to somebody else. Perhaps a PHP extension (that I've never heard of), an application, or a web service.

That last option is your best shot.
I need to take a screenshots of the websites through online, how can I develop this ? Give me a idea's ? The 1 options that you gave, is very hard to take a screenshots of the websites.