ALWAYS_WEBP now also for PNG

This commit is contained in:
Chris
2023-08-26 11:55:00 +02:00
parent 4fbf8b31a2
commit c90a716d45

View File

@@ -123,7 +123,7 @@ class ImageController implements ContentController
}
}
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;