mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-07-06 01:42:29 +02:00
Implement imagick command fix
`pwg_image::get_ext_imagick_command()` get the imagick command (convert or magick) replace all convert with pwg_image::get_ext_imagick_command()
This commit is contained in:
committed by
Pierrick Le Gall
parent
66df209632
commit
3293b329e9
@@ -3727,7 +3727,7 @@ function get_graphics_library()
|
||||
switch (pwg_image::get_library())
|
||||
{
|
||||
case 'ext_imagick':
|
||||
exec($conf['ext_imagick_dir'].'convert -version', $returnarray);
|
||||
exec($conf['ext_imagick_dir'].pwg_image::get_ext_imagick_command().' -version', $returnarray);
|
||||
if (preg_match('/Version: ImageMagick (\d+\.\d+\.\d+-?\d*)/', $returnarray[0], $match))
|
||||
{
|
||||
$library.= '/'.$match[1];
|
||||
|
||||
Reference in New Issue
Block a user