From 7aa99919dd6e577230fc9bd5aa1c3593a83c2acb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B0=B9=E8=AF=9A=E8=AF=9A?= Date: Thu, 20 Sep 2018 17:12:47 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=85=88=E6=98=BE=E7=A4=BAwebp?= =?UTF-8?q?=E6=A0=BC=E5=BC=8F=E5=9B=BE=E7=89=87?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/third_party/htmlcompressor/controllers/index.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/application/third_party/htmlcompressor/controllers/index.php b/application/third_party/htmlcompressor/controllers/index.php index 38287534..a7055fff 100644 --- a/application/third_party/htmlcompressor/controllers/index.php +++ b/application/third_party/htmlcompressor/controllers/index.php @@ -304,11 +304,11 @@ class Index extends CI_Controller //添加webp图片支持 $img_src_webp=''; if(substr($img_src, -4) == '.jpg'){ - $img_src_jpg=" width}\" height=\"{$img_size->height}\">"; + $img_src_jpg=" width}\" height=\"{$img_size->height}\">"; $img_src_webp=substr($img_src, 0, strlen($img_src) - 4).'.webp'; - $img_src_webp = " width}\" height=\"{$img_size->height}\" {$img_src_jpg}>"; + $img_src_webp = " width}\" height=\"{$img_size->height}\" {$img_src_jpg}>"; } if(!empty($img_src_webp)){ $image->outertext =$img_src_webp;