Possible Duplicate:
Capture HTML Canvas as gif/jpg/png/pdf?
Is there a simple way to create JS onclick function which will print the current screen of the website, save it as the image (.jpg or something) and send it via email.
I would like to create this option for the user side so there is no need for user to use keyboard 'Prnt Scr', then open Paint and paste and 'save as' an image, then attach and send via email.
Thanks in advance!
Most Android devices should be able to take screen grabs by holding down the power and volume down buttons, though holding the power and home buttons (if your device has a physical button) may also work. Several Android devices have a screenshot button in the pull-down shade.
Sometimes abbreviated as Prscr, PRTSC, PrtScrn, Prt Scrn, PrntScrn, or Ps/SR, the Print Screen key is a keyboard key found on most computer keyboards. When pressed, the key either sends the current screen image to the computer clipboard or the printer depending on the operating system or running program.
There are a few solutions out there:
Converting a webpage to an image using wkhtmltox
:
generating a screenshot of a website using jquery
Make use of the HTMLCanvasElement
object's toDataURL
function:
How to take screen shot of a div with JavaScript
The html2canvas
script:
Using HTML5/Canvas/Javascript to take screenshots
Using the PHP wkhtmltoimage
:
Taking screenshots of websites in PHP
ps: a simple Google search gives you all of this!
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With