ImageMagick is a C library, it is not a PHP library/module/extension/whatever.
If you expect ImageMagick functions to be available to PHP, you need the PHP extension that binds to the C library in addition to the ImageMagick package. php-pecl-imagick
is probably what you want, but if you’re using php72, you’ll need the package for that version, php72-pecl-imagick
.