fixes #2462 magick Vs convert: return only command name, not full path

This commit is contained in:
plegall
2025-12-01 15:07:40 +01:00
parent 435837a2e3
commit 66f0ef574d

View File

@@ -380,11 +380,11 @@ class pwg_image
exec('command -v '.$conf['ext_imagick_dir'].'magick', $cmd_out , $retval );
if (0 == $retval)
{
$page['ext_imagick_command'] = $cmd_out[0];
$page['ext_imagick_command'] = 'magick';
}
else
{
$page['ext_imagick_command'] = $conf['ext_imagick_dir'].'convert';
$page['ext_imagick_command'] = 'convert';
}
}