Page 1 of 1

Plesk convert with PHP 7.2

Posted: 2018-11-05T02:42:50-07:00
by stefjoe
Hello everybody,

i have a question about Plesk and convert path.

I have installed multiple php version on plesk and PHP 7.2 is not the cli, using a Ubuntu server.
In my phpinfo i can see Imagick, but when i open /usr/local/bin the dir is empty.

Also when i call whereis convert in console, i get nothing.

This shows me a file not found:
<?php
echo "<pre>";
system("type convert");
echo "</pre>";
?>

This shows me a 1:
<?php
echo "<pre>";
system('which convert',$path); print_r($path);
echo "</pre>";
?>

The path of my PHP 7.2 is in /opt/plesk/php/7.2.

Thx and rgds

Re: Plesk convert with PHP 7.2

Posted: 2018-11-05T11:03:23-07:00
by fmw42
I believe you need to install ImageMagick in addition to Imagick. Also be sure you install ImageMagick 6 or 7, whichever is compatible with your Imagick. If you installed ImageMagick 7, then the commands are with magick and not convert. So perhaps you need ImageMagick 6 rather than 7 to be compatible with your Imagick version.

Re: Plesk convert with PHP 7.2

Posted: 2018-11-05T12:52:09-07:00
by stefjoe
Hello @fmw42,
thank you for your help and yes that was the problem. Ahhhhh i thought it was installed.

Thx for it an have a nice evening :-)