tripura4u Posted May 18, 2013 Share Posted May 18, 2013 Hi Experts, My Requirement Take screeshot of a website without opening the site in browser Browser. Eg.. My input will be www.google.com and the output will be a jpg/png with the screenshot Plz help Quote Link to comment https://forums.phpfreaks.com/topic/278132-take-screenshot-of-a-site-without-opening-browser/ Share on other sites More sharing options...
requinix Posted May 18, 2013 Share Posted May 18, 2013 How are you supposed to get a screenshot when you can't even put the site on the screen? Quote Link to comment https://forums.phpfreaks.com/topic/278132-take-screenshot-of-a-site-without-opening-browser/#findComment-1430880 Share on other sites More sharing options...
kicken Posted May 18, 2013 Share Posted May 18, 2013 There are some projects out there that will render a website to an image. Do a little googling and you can find them. Once you have one installed just have PHP exec the program with the proper parameters to capture the URL you want. Quote Link to comment https://forums.phpfreaks.com/topic/278132-take-screenshot-of-a-site-without-opening-browser/#findComment-1430887 Share on other sites More sharing options...
trq Posted May 19, 2013 Share Posted May 19, 2013 This can be done quite easily using the proper libraries. We use phatom.js at work to take screen captures for various reasons. It's an awesome library. Quote Link to comment https://forums.phpfreaks.com/topic/278132-take-screenshot-of-a-site-without-opening-browser/#findComment-1430969 Share on other sites More sharing options...
junejune Posted June 7, 2013 Share Posted June 7, 2013 Maybe you can try http://locasnap.com but I am not sure if they have any free APIs or scripts for this. They allows snapshot from different locations as well. Quote Link to comment https://forums.phpfreaks.com/topic/278132-take-screenshot-of-a-site-without-opening-browser/#findComment-1434607 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.