mirror of
https://github.com/HaschekSolutions/pictshare.git
synced 2025-11-13 03:36:21 +00:00
ALWAYS_WEBP now also for PNG
This commit is contained in:
@@ -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;
|
$modifiers['webp'] = true;
|
||||||
if(in_array('forcesize',$url) && $modifiers['size'])
|
if(in_array('forcesize',$url) && $modifiers['size'])
|
||||||
$modifiers['forcesize'] = true;
|
$modifiers['forcesize'] = true;
|
||||||
|
|||||||
Reference in New Issue
Block a user