robert_gsfame Posted July 9, 2011 Share Posted July 9, 2011 Can anyone give me the logic on how to capture an image of a website URL like using w3snapshot?? thx in advance Quote Link to comment https://forums.phpfreaks.com/topic/241470-capture-webpage-url-image/ Share on other sites More sharing options...
davidmyers Posted July 9, 2011 Share Posted July 9, 2011 After doing a quick search it looks like if you run a linux server you're going to have to install a library of some sort to accomplish what you want. But if you run a windows server there are some built-in PHP functions that you can use. Here's the best link I found: http://stackoverflow.com/questions/757675/website-screenshots-using-php The first answer talks about using libraries and the second answer talks about using the windows functions and give great examples of how to use them. Quote Link to comment https://forums.phpfreaks.com/topic/241470-capture-webpage-url-image/#findComment-1240554 Share on other sites More sharing options...
QuickOldCar Posted July 9, 2011 Share Posted July 9, 2011 For linux you use a virtual frame buffer (Xvfb). Be aware linux has file limitations so need to come up with a slick filesystem. http://www.boutell.com/webthumb/ http://cutycapt.sourceforge.net/ http://iecapt.sourceforge.net/ You can save urls into lists and use this. http://www.softpedia.com/get/Multimedia/Graphic/Graphic-Capture/WebShot.shtml I personally use a windows machine and use firefox with a plugin http://pearlcrescent.com/products/pagesaver/ exec() firefox with a url and the plugin does the rest Trust me when I say I've explored many options, I feel windows/firefox/pagesaver is the best way. install adblock, noscript, stop redirects IE crashes too much, allows many scripts and ads. my friend made http://wimg.ca/ is based on linux and uses firefox Maybe can contact him and he may sell also help you get this running, he's a busy person. hover one of the example links. http://wimg.ca/test I think it's very cool. Quote Link to comment https://forums.phpfreaks.com/topic/241470-capture-webpage-url-image/#findComment-1240588 Share on other sites More sharing options...
robert_gsfame Posted July 10, 2011 Author Share Posted July 10, 2011 What i want is exactly like what http://wimg.ca/ can do.. suppose user type whatever the URL, then let say a script will run and capture the image of related URL and put it into specified folder assume "image_folder" Quote Link to comment https://forums.phpfreaks.com/topic/241470-capture-webpage-url-image/#findComment-1240845 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.