Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $('#save_image_locally').click(function(){
- html2canvas($('#picture_frame'),
- {
- onrendered: function (canvas) {
- var img = canvas.toDataURL("image/png");
- alert('Your image will open in a new window. Please right click the image and save.');
- window.open(img);
- }
- });
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement