Change to PNG as default output

I encountered a number of large web pages that would not render as jpg. Switching to png made them work. Suggest to make png the default now.
This commit is contained in:
luckyjay 2016-01-10 11:28:35 -05:00
parent d63cee86a6
commit 2a1452c9f2

View File

@ -63,7 +63,8 @@ class http2pic
switch($this->params['type']) switch($this->params['type'])
{ {
case 'png': $this->params['type'] = 'png'; break; case 'png': $this->params['type'] = 'png'; break;
default: $this->params['type'] = 'jpg'; case 'jpg': $this->params['type'] = 'jpg'; break;
default: $this->params['type'] = 'png';
} }
//validate timeout //validate timeout