Coder Social home page Coder Social logo

html2canvas-proxy's Introduction

html2canvas-proxy

Proxies for html2canvas. Currently available proxies:

  • Python for Google Appengine

html2canvas-proxy's People

Contributors

niklasvh avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

html2canvas-proxy's Issues

How do We use python Proxy

I am trying to capture the google map, and it did it, however the marker are not shown. Will using proxy can save the marker too. Some snippets would be grateful in python.

Proxy user guide

Hello,

Could you provide us a guide on how to use this proxy with html2canvas.
On localhost the canvas generation works fine, however when uploaded to the server, I'm facing the error : Unable to get image data from canvas because the canvas has been tainted by cross-origin data.

Thanks in advance.

Problems

I created a google app using the open source code and deployed it. I changed the proxy addresses in the jquery.plugin.html2canvas.js and screenshots.html. Then I tried to run screenshots.html, but it didn't work. Is there something else I should be doing?

Facebook comments

I have a website witch uses facebook plugin comments. I'm looking for a way to have those comments inside a screenshot. If I use the simple html2canvas I get a blank box instead of them. So I try to use html2canvasproxy but now it print some javascript console log instead of the facebook comments.
It shoud be like www.peoplesecrets.com/screenshots/1.png but I get www.peoplesecrets.com/screenshots/2.png . I noticed that the html2canvasproxy.php saves the facebook plugin html correctly. How can I solve?

Flex is not supported

I am implementing screenshot widget on top of html2canvas functionality. I am running into an issue as the markup has used flex extensively and seems that html2canvas module is not supporting flex. So, need help here regarding how to add support for flex while taking screenshot using html2canvas

@niklasvh

How do I use html2canvas proxy

Hey,

So in html2canvas.js i set

            // preload options
            proxy: 'proxy.js',
            timeout: 0,    // no timeout
            useCORS: false, // try to load images as CORS (where available), before falling back to proxy
            allowTaint: false, //

And in proxy.js (node.js proxy) What do I set here

var url, http, request;
url = require('url');
http = require('http');
request = require('request');

I am running on my local host and I am using html2canvas to capture cross-domain homepage screenshots.

I keep getting this error

html2canvas.js:359
2
Blocked a frame with origin "http://localhost" from accessing a frame with origin "http://money.rediff.com". Protocols, domains, and ports must match. html2canvas.js:359
Uncaught ReferenceError: require is not defined proxy.js:10
(anonymous function)

Please help.

html2canvas OnRender failed because of cross domain images

I want a screenshot of the current page through html2canvas. However, the code displays "here" and then stops the second alert function is not triggering

alert("here");
html2canvas(instance.element, {
    onrendered: function(canvas) {
        alert("here");
        instance.options.onPostRender(canvas)

In the firebug the following error appears:

"NetworkError: 404 Not Found - http://html2canvas.appspot.com/?url=https%3A%2F%2Fwww.otherdomain.com%2Flivezilla%2Fimage.php%3Fid%3D08&callback=html2canvas_1"
"NetworkError: 404 Not Found - http://html2canvas.appspot.com/?url=https%3A%2F%2Ffpdbs.sandbox.paypal.com%2Fdynamicimageweb%3Fcmd%3D_dynamic-image%26buttontype%3Decshortcut%26locale%3Den_US%26ordertotal%3D569.00%26pal%3D3JZ6HTBQ33JC2&callback=html2canvas_8"

I think its because the image is from another domain, but I found related issue but I think the proxy is already there now.
#2

html2canvas-proxy SyntaxError

Use php proxy or asp proxy, it reports 'syntax error' in line 1. I download the html2canvas-proxy zip, and use the proxy file, never modify the php proxy file,
but it tells me 'syntax error' in line 1 '<?php'.
screen shot 2014-06-03 at 12 17 36

html2canvas($('#draw-part'), { userCORS: true, proxy: "/html2canvasproxy.php", onrendered: function(canvas) {

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.