(cp 66f0ef574) fixes #2462 magick Vs convert: return only command name, not full path

This commit is contained in:
plegall
2025-12-01 15:09:14 +01:00
parent 979e9c4429
commit 111cb62b0f

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';
}
}