Screenshot of the window via Javascript or PHP or is there a reliable API to get...
source link: https://www.codesd.com/item/screenshot-of-the-window-via-javascript-or-php-or-is-there-a-reliable-api-to-get-this.html
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
Screenshot of the window via Javascript or PHP or is there a reliable API to get this
Is there any possibility to take screenshot through javascript of window or div elements. I used "HTML5's CANVAS" but the result is not so fine. Or is there any reliable API to get this?
You can use Html2Canvas
This script allows you to take "screenshots" of webpages or parts of it, directly on the users browser.
See Examples at http://html2canvas.hertzen.com/examples.html
Or You can use EaselJS
Export and save a screenshot of an HTML5 Canvas using PHP, JQuery and EaselJS
EaselJS steps:
- export an HTML5 canvas as PNG image (making a screenshot)
- send the PNG to a PHP script using jQuery
- save the PNG on the webserver
- setup an EaselJS project
Related Articles
iOS hits the x / y coordinates of the interface window via Javascript
Obtain a part of the path via JavaScript regex
$ _GET the variable from javascript to php
Why is there no Android API to get the current activity?
Is there an Android API to get the file type using the file format
Opening the facebook connect window via javascript?
How to pass the shape parameters to the Action class when opening a jsp in a new window via Javascript
How to access the child window of the parent window via JavaScript?
Control the browser window via Javascript
Skip Json using Ajax Post via javascript for php does not work
What is going on behind the scenes and is this the right way to do it? (Modification of the DOM via Javascript)
Sign in Google via Javascript and PHP
Obtain server paths via JavaScript vs PHP
How to get the content of the page after the redirect by javascript in php
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK