Plesk convert with PHP 7.2

IMagick is a native PHP extension to create and modify images using the ImageMagick API. ImageMagick Studio LLC did not write nor does it maintain the IMagick extension, however, IMagick users are welcome to discuss the extension here.
Post Reply
stefjoe
Posts: 2
Joined: 2018-11-05T02:31:10-07:00
Authentication code: 1152

Plesk convert with PHP 7.2

Post 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
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Plesk convert with PHP 7.2

Post 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.
stefjoe
Posts: 2
Joined: 2018-11-05T02:31:10-07:00
Authentication code: 1152

Re: Plesk convert with PHP 7.2

Post 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 :-)
Post Reply