Take Screenshot of Webpage or Particular Div Content Download WebPage or Particular area of the webpage as Image using jquery and PHP
Bharat Parmar
1.0
-
example.php : Example Script file
-
saveimage.php : This file will save the HTML Content in PNG Image Format.
-
downloadimage.php : This file will ask user to download the generated image.
-
screenshot : This directory will store temp image files.
- PHP Version : 3.0 and above
-
HTML to Canvas : Script will read the HTML code of the given print area.
-
HTML2Canvas Plugin : This plugin will generate Canvas content into the base64 data url of the image.
-
saveimage.php : Jquery send the Canvas Image Data URL to php file which will created new png image file.
-
downloadimag.php : PHP file will ask User to download the image.
Capture Image1
-
class : 'save-image' selectore will trigger the save image function.
-
attribute : 'data-print-area' will provide the printable area selector.
You can make your custom script to trigge the function as per you requirement. This script can be used to take screenshot of
the user on particular time interval.