• 0

[PHP] helpwith url thumbnail creation


Question

In PHP is there a way to render a thumbnail of a webpage? like a mini preview of it?

sorta seen like this

http://msnsearch.srv.girafa.com/srv/i?i=4a...e.aspx?m=535623

I would just like to know if you can do that in PHP and what functions are required, thanks.

*edit*

btw I dont want it to read from previously created images, I want it to create them on the fly/dynamically thanks

Link to comment
Share on other sites

8 answers to this question

Recommended Posts

  • 0

You'd have to create an HTML rendering engine in PHP. I'm not going to stop you, but that's quite a big project....

I think they just take pictures of the site and shirnk them in photoshop, that's all.

Link to comment
Share on other sites

  • 0

well...I know for asp there are com obects that will autoresize pictures and stuff (i.e. aspjpeg...which I currently use and it works great). I'm sure there has to be something similar for php?

Link to comment
Share on other sites

  • 0

Well, the class that would render it would be an HTML rendering engine, buit in PHP. If you want to port Gecko (which is a couple million lines of code, I believe), that's fine. But, both the execution time and difficulty for making such a class would be massive!

Link to comment
Share on other sites

  • 0

Well, you could have a complex script set up with windows that will load a vbscript to open up a web browser and snap a pic to a file, and then do the GD image stuff on that file in PHP. It'd be a bit of work, but not impossible that way. It'd just be a sort of roundabout way to do it, IMO. *shrug*

Link to comment
Share on other sites

This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.