API changes across versions
-
.done
callback is now:.then
Promise library has been changed to bluebird.
-
.fail
callback is now:.catch
-
options.ignoreSslErrors
was removed. Useoptions.phantomArguments
instead.Examples
{ // Note: this is the new default for phantom arguments phantomArguments: '--ignore-ssl-errors=true' }
urltoimage --phantom-arguments="--ignore-ssl-errors=true" google.com google.png
-
options.sslProtocol
was removed. Useoptions.phantomArguments
instead.See above example. See also: http://phantomjs.org/api/command-line.html