From 2a1452c9f213aaa542255137c936ee56f574fd8d Mon Sep 17 00:00:00 2001 From: luckyjay Date: Sun, 10 Jan 2016 11:28:35 -0500 Subject: [PATCH] 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. --- http2pic.class.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/http2pic.class.php b/http2pic.class.php index 231a62b..79a6254 100644 --- a/http2pic.class.php +++ b/http2pic.class.php @@ -63,7 +63,8 @@ class http2pic switch($this->params['type']) { 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