how can create website thumbnail in PHP ?

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
youropensource
Forum Commoner
Posts: 26
Joined: Tue Aug 05, 2008 11:42 am

how can create website thumbnail in PHP ?

Post by youropensource »

Is any possibility to create a thumbnail of the website in PHP ?

Regards,
YourOpenSource.Com
User avatar
requinix
Spammer :|
Posts: 6617
Joined: Wed Oct 15, 2008 2:35 am
Location: WA, USA

Re: how can create website thumbnail in PHP ?

Post 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.
User avatar
omika
Forum Newbie
Posts: 19
Joined: Sun Oct 12, 2008 2:00 pm
Location: New Zealand

Re: how can create website thumbnail in PHP ?

Post by omika »

Try class.upload http://www.verot.net/php_class_upload.htm by Colin Verot.
User avatar
onion2k
Jedi Mod
Posts: 5263
Joined: Tue Dec 21, 2004 5:03 pm
Location: usrlab.com

Re: how can create website thumbnail in PHP ?

Post 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.
User avatar
omika
Forum Newbie
Posts: 19
Joined: Sun Oct 12, 2008 2:00 pm
Location: New Zealand

Re: how can create website thumbnail in PHP ?

Post by omika »

My bad. Morningitis :?
youropensource
Forum Commoner
Posts: 26
Joined: Tue Aug 05, 2008 11:42 am

Re: how can create website thumbnail in PHP ?

Post 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.
Post Reply