From c90a716d4586d37f2f6c1fd4f1c372d8587640e5 Mon Sep 17 00:00:00 2001 From: Chris Date: Sat, 26 Aug 2023 11:55:00 +0200 Subject: [PATCH] ALWAYS_WEBP now also for PNG --- content-controllers/image/image.controller.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content-controllers/image/image.controller.php b/content-controllers/image/image.controller.php index 33a4a68..6c92102 100644 --- a/content-controllers/image/image.controller.php +++ b/content-controllers/image/image.controller.php @@ -123,7 +123,7 @@ public function handleHash($hash,$url) } } - if( (in_array('webp',$url) && $type!='webp') || ( $this->shouldAlwaysBeWebp() && $type=='jpg' ) ) + if( (in_array('webp',$url) && $type!='webp') || ( $this->shouldAlwaysBeWebp() && ($type=='jpg' || $type=='png') ) ) $modifiers['webp'] = true; if(in_array('forcesize',$url) && $modifiers['size']) $modifiers['forcesize'] = true;