Capture webpage screenshot using PHP and Phantomjs
Recently I Tried the ways to capture a webpage screenshot using php. There are many number of approaches to capture the screenshot but there are some difficulties with the default php functions and hence I concluded with the phantomjs JavaScript library to perform the screen capture function. I used php script to trigger the phantomjs code. Idea: To capture a website screenshot and save it as image file. Why PHP is so not an option for me? PHP has imagescreengrab () function that captures the current screen and saves it to a png file but the disadvantage is that it does not accept the url parameter in case if you need to remotely capture the webpage screenshot. One other thing is php will support this function only … Continue reading Capture webpage screenshot using PHP and Phantomjs
Copy and paste this URL into your WordPress site to embed
Copy and paste this code into your site to embed