// If avif is not supported fallback to the parent.
if(!$this->isAvifSupported()){
returnparent::applyEffect($image);
}
if(!$image->convert('avif')){
$this->logger->error('Image convert failed using the %toolkit toolkit on %path (%mimetype)',['%toolkit'=>$image->getToolkitId(),'%path'=>$image->getSource(),'%mimetype'=>$image->getMimeType()]);