Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F96160085
PhabricatorImagemagickSetupCheck.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Mon, Dec 23, 07:57
Size
906 B
Mime Type
text/x-php
Expires
Wed, Dec 25, 07:57 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
23135860
Attached To
rPH Phabricator
PhabricatorImagemagickSetupCheck.php
View Options
<?php
final
class
PhabricatorImagemagickSetupCheck
extends
PhabricatorSetupCheck
{
public
function
getDefaultGroup
()
{
return
self
::
GROUP_OTHER
;
}
protected
function
executeChecks
()
{
$imagemagick
=
PhabricatorEnv
::
getEnvConfig
(
'files.enable-imagemagick'
);
if
(
$imagemagick
)
{
if
(!
Filesystem
::
binaryExists
(
'convert'
))
{
$message
=
pht
(
'You have enabled Imagemagick in your config, but the
\'
convert
\'
'
.
'binary is not in the webserver
\'
s $PATH. Disable imagemagick '
.
'or make it available to the webserver.'
);
$this
->
newIssue
(
'files.enable-imagemagick'
)
->
setName
(
pht
(
"'convert' binary not found or Imagemagick is not installed."
))
->
setMessage
(
$message
)
->
addRelatedPhabricatorConfig
(
'files.enable-imagemagick'
)
->
addPhabricatorConfig
(
'environment.append-paths'
);
}
}
}
}
Event Timeline
Log In to Comment