3 final class PhabricatorImagemagickSetupCheck
extends PhabricatorSetupCheck
{
5 public function getDefaultGroup() {
6 return self
::GROUP_OTHER
;
9 protected function executeChecks() {
10 $imagemagick = PhabricatorEnv
::getEnvConfig('files.enable-imagemagick');
12 if (!Filesystem
::binaryExists('convert')) {
14 "You have enabled Imagemagick in your config, but the '%s' ".
15 "binary is not in the webserver's %s. Disable imagemagick ".
16 "or make it available to the webserver.",
20 $this->newIssue('files.enable-imagemagick')
22 "'%s' binary not found or Imagemagick is not installed.", 'convert'))
23 ->setMessage($message)
24 ->addRelatedPhabricatorConfig('files.enable-imagemagick')
25 ->addPhabricatorConfig('environment.append-paths');