/** * Checks if ImageMagick is enabled. * * @return boolean */ public static function check() { if (!extension_loaded('imagick')) { die('Imagick is not installed, or the extension is not loaded'); } return Magic::$_checked = TRUE; }