cesarcesar Posted August 10, 2007 Share Posted August 10, 2007 i want to do a screen capture/scrape of a page, resulting in a JPG or PNG that i could save in a dir of my choice. This capture needs to take place a few seconds after the page loads, to allow all JavaScript and Flash elements on page to load. It would be great if i could also/just target a specific JS or Flash element to grab, instead of the whole page. There has to be some great PHP solutions for this. Thanks, Cesar Quote Link to comment https://forums.phpfreaks.com/topic/64206-screen-capture/ Share on other sites More sharing options...
dbo Posted August 10, 2007 Share Posted August 10, 2007 I don't think that there is. I believe you can capture the entire screen but it only works on windows and even that I don't think will do quite what you want. http://php.oregonstate.edu/manual/en/function.imagegrabscreen.php Quote Link to comment https://forums.phpfreaks.com/topic/64206-screen-capture/#findComment-320094 Share on other sites More sharing options...
cesarcesar Posted August 10, 2007 Author Share Posted August 10, 2007 there has to be some type of server-side scripts and modules that can render a page server-side. sitevista.com does it... why cant I? i have to be able to load a page in the background. possibly load it into cache first. HTML to PDF conversion scripts do it... sorta somewhat. thanks for the reply Quote Link to comment https://forums.phpfreaks.com/topic/64206-screen-capture/#findComment-320111 Share on other sites More sharing options...
dbo Posted August 10, 2007 Share Posted August 10, 2007 You might be able to render it and pdf it. Getting an jpg or png as you asked would be more difficult. Quote Link to comment https://forums.phpfreaks.com/topic/64206-screen-capture/#findComment-320113 Share on other sites More sharing options...
chanchelkumar Posted August 10, 2007 Share Posted August 10, 2007 well ithink "dbo" is right... i too search a little for it my site.... Let me know if you get a solution.... Thanks... Quote Link to comment https://forums.phpfreaks.com/topic/64206-screen-capture/#findComment-320117 Share on other sites More sharing options...
MadTechie Posted August 10, 2007 Share Posted August 10, 2007 there has to be some type of server-side scripts and modules that can render a page server-side. sitevista.com does it... why cant I? Bascially the problem is how the screen shot is taken, ie from IE/Firefox etc.. Mac or PC or *nix.. if you have some software on the server to goto that site using the defind browser then yes you could do it but that feature is not in PHP/Apache yes theirs probably software that will do it, infact if your running a windows sever then a simple VB app that accepts connections on another port and dumps the image to a apache folder could be written in a short time.. but then your need to have access to that sever to install and setup the software.. so you CAN do it but is it worth it ? If you want to use this then browsercam.com have done just that.. I hope this helps Quote Link to comment https://forums.phpfreaks.com/topic/64206-screen-capture/#findComment-320164 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.