public function checkOperationality()
    {
        if (!extension_loaded('imagick')) {
            throw new SystemRequirementsNotMetException('Required iMagick extension is not available.');
        }

        if (!class_exists('\\Imagick')) {
            throw new SystemRequirementsNotMetException(
                'iMagick is installed, but not correctly. The class Imagick is not available'
            );
        }

        $im = new \Imagick();
        if (!in_array('WEBP', $im->queryFormats('WEBP'))) {
            throw new SystemRequirementsNotMetException('iMagick was compiled without WebP support.');
        }
    }
public function checkOperationality()
    {
        if (!extension_loaded('imagick')) {
            throw new SystemRequirementsNotMetException('Required iMagick extension is not available.');
        }

        if (!class_exists('\\Imagick')) {
            throw new SystemRequirementsNotMetException(
                'iMagick is installed, but not correctly. The class Imagick is not available'
            );
        }

        $im = new \Imagick();
        if (!in_array('WEBP', $im->queryFormats('WEBP'))) {
            throw new SystemRequirementsNotMetException('iMagick was compiled without WebP support.');
        }
    }
public function checkOperationality ( ) { if ( ! extension_loaded ( 'imagick' ) ) { throw new SystemRequirementsNotMetException ( 'Required iMagick extension is not available.' ) ; } if ( ! class_exists ( '\\Imagick' ) ) { throw new SystemRequirementsNotMetException ( 'iMagick is installed, but not correctly. The class Imagick is not available' ) ; } $ im = new \ Imagick ( ) ; if ( ! in_array ( 'WEBP' , $ im -> queryFormats ( 'WEBP' ) ) ) { throw new SystemRequirementsNotMetException ( 'iMagick was compiled without WebP support.' ) ; } }
Check operationality of Imagick converter.

Note:
It may be that Gd has been compiled without jpeg support or png support.
We do not check for this here, as the converter could still be used for the other.

@throws SystemRequirementsNotMetException  if system requirements are not met
@return void
Check operationality of Imagick converter .