Skip to content

Commit

Permalink
ALWAYS_WEBP now also for PNG
Browse files Browse the repository at this point in the history
  • Loading branch information
geek-at committed Aug 26, 2023
1 parent 4fbf8b3 commit c90a716
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion content-controllers/image/image.controller.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit c90a716

Please sign in to comment.