How to use proxy with Html2Image Liux:

Sometimes you may want to use html2image in an enviroment that needs to set proxy.

One of our customers shares his tip on this problem. here it is:

  • Configure the proxy options into ./html2image/greprefs/all.js.

Example below, this is the standard firefox proxy setting

pref(“network.proxy.autoconfig_url”,        “http://myProxy/myScript”);
pref(“network.proxy.type”,                  2);

If you have any comments on this solution, let us know!