public function setEnableImageMagick($enable)
    {
        if (!is_bool($enable)) {
            throw new \InvalidArgumentException(
                "enableImageMagick can only assume boolean values. Specified value: $enable.");
        }

        // Verify that the Imagick extension is installed
        if ($enable && !extension_loaded('imagick')) {
            throw new \Exception(
                'Failed to enable ImageMagick. '.
                'The Imagick PHP extension was not found on this system.');
        }
        
        $this->enableImageMagick = $enable;
    }
public function setEnableImageMagick($enable)
    {
        if (!is_bool($enable)) {
            throw new \InvalidArgumentException(
                "enableImageMagick can only assume boolean values. Specified value: $enable.");
        }

        // Verify that the Imagick extension is installed
        if ($enable && !extension_loaded('imagick')) {
            throw new \Exception(
                'Failed to enable ImageMagick. '.
                'The Imagick PHP extension was not found on this system.');
        }
        
        $this->enableImageMagick = $enable;
    }
public function setEnableImageMagick ( $ enable ) { if ( ! is_bool ( $ enable ) ) { throw new \ InvalidArgumentException ( "enableImageMagick can only assume boolean values. Specified value: $enable." ) ; } // Verify that the Imagick extension is installed if ( $ enable && ! extension_loaded ( 'imagick' ) ) { throw new \ Exception ( 'Failed to enable ImageMagick. ' . 'The Imagick PHP extension was not found on this system.' ) ; } $ this -> enableImageMagick = $ enable ; }
Sets whether ImageMagick should be used to generate PNG icons.

@param bool $enable true to enable ImageMagick.
Sets whether ImageMagick should be used to generate PNG icons .