/** * Checks if ImageMagick is enabled and bundled. Bundled GD is required for some * methods to work. * * @throws Kohana_Exception * @return boolean */ public static function check() { exec(Image_ImageMagick::get_command('convert'), $response, $status); if ($status) { throw new Kohana_Exception('ImageMagick is not installed in :path, check your configuration. status :status', array(':path' => Image_ImageMagick::$_imagemagick, ':status' => $status)); } return Image_ImageMagick::$_checked = TRUE; }
public static function check() { return Image_ImageMagick::$_checked = TRUE; }