-
Notifications
You must be signed in to change notification settings - Fork 4.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to store the rendered image from canvas ? #115
Comments
You can call the |
for this code its displying
and
it's giving the error |
What browser are you using, i.e. does it have native canvas support or is it using FlashCanvas, as flashcanvas has some issues with Is |
This is the total code i am using. It is just taken from html2canvas demo I am using Firefox 14.0.1 for Windows.. |
@niklasvh @mrsrinivas for some bizarre reason, Chrome changed the method to getDataURL(). Note the case change... :O Lost a good half hour on this! Hope that helps |
Thanks for the heads up |
hi,mrsrinivas .How is this issue going? Was it able to store the screenshot? If it works, would you please share your experience with me , thanks. |
still i'm not able to get the url of image file in any format. |
This worked for me with v0.34 ...
// php |
@halburgiss - in which file an where exactly must the code include? |
canvas.toDataURL( "image/png" ); throwing security exception while capturing google map |
If i want to take screenshot and store it into pdf file.how could i do this? |
thanks alot halburgiss.
PHP (savePNG.php)
|
I have used your code. It shows: |
Hi @deb54, "tainted canvases" are a result of cross-domain images. For Internet security reasons, trying to use an image from a different domain in a canvas causes problems. There are two html2canvas options, useCORS and proxy, which are designed to try to get around that problem. They're not perfect solutions though - you can read more over at #951 and #592. |
Thanks, eKoopmans. Actually, me trying to save the total div as an image. Now I have faced two new problems, after converting Html to canvas the image size is fixed, i can't resize the canvas, if I resize then it appears blank. |
|
Hi niklasvh,
I am developing a website on PHP(Codeigniter). In that i am using html2canvas tool to capture screen shot of a website. Its working fine. But need to to store the image in my web server ?
Is it possible with this tool?
The text was updated successfully, but these errors were encountered: