Merge pull request #6 from luckyjay/master
Remove clipRect setting to fix rendering
This commit is contained in:
commit
102b39235d
@ -146,7 +146,7 @@ class http2pic
|
||||
function renderPagePHANTOMJS()
|
||||
{
|
||||
$cmd = 'timeout '.$this->params['timeout'].' '.PHANTOMJSPATH;
|
||||
$cmd.= ' '.__DIR__.'/phantom.js ';
|
||||
$cmd.= ' --ignore-ssl-errors=yes --ssl-protocol=any '.__DIR__.'/phantom.js ';
|
||||
|
||||
$cmd.= ($this->params['url']);
|
||||
$cmd.= ','.($this->params['file']);
|
||||
@ -279,7 +279,7 @@ class http2pic
|
||||
function isURLReachable($url)
|
||||
{
|
||||
$ch = curl_init($url);
|
||||
curl_setopt($ch, CURLOPT_NOBODY, true);
|
||||
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
|
||||
curl_exec($ch);
|
||||
$code = curl_getinfo($ch, CURLINFO_HTTP_CODE);
|
||||
|
||||
|
@ -13,7 +13,6 @@ var js = input[4];
|
||||
var pageWidth = (vp_w!="")?parseInt(vp_w, 10):1024;
|
||||
var pageHeight = (vp_h!="")?parseInt(vp_h, 10):'auto';
|
||||
page.viewportSize = { width: pageWidth, height: pageHeight };
|
||||
page.clipRect = { top: 0, left: 0, width: pageWidth, height: pageHeight };
|
||||
page.settings['javascriptEnabled'] = (js=="no")?false:true;
|
||||
|
||||
page.open(address, function (status) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user