72001 Posted March 11, 2003 Share Posted March 11, 2003 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 More sharing options...
0 Tim Dorr Veteran Posted March 11, 2003 Veteran Share Posted March 11, 2003 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 More sharing options...
0 PezDspncr Posted March 11, 2003 Share Posted March 11, 2003 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 More sharing options...
0 72001 Posted March 11, 2003 Author Share Posted March 11, 2003 i suppose i cant just use the file() and then somehow use a class/object with it to render it a gif? Link to comment Share on other sites More sharing options...
0 Tim Dorr Veteran Posted March 11, 2003 Veteran Share Posted March 11, 2003 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 More sharing options...
0 72001 Posted March 11, 2003 Author Share Posted March 11, 2003 im not trying to challange you timdorr :) im just trying to think of a not so hard way :) Link to comment Share on other sites More sharing options...
0 Tim Dorr Veteran Posted March 11, 2003 Veteran Share Posted March 11, 2003 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 More sharing options...
0 isak Posted March 11, 2003 Share Posted March 11, 2003 I know things like gallery auto resize the image, it is written in php, and uses NETpbm I think. So that may be something you would want to look into. Link to comment Share on other sites More sharing options...
0 72001 Posted March 11, 2003 Author Share Posted March 11, 2003 i suck in vb so thats out, ill just have to find another way Link to comment Share on other sites More sharing options...
Question
72001
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