So installieren Sie Imagick

step 1
sudo apt update && sudo apt upgrade -y

step 2
sudo apt install php-imagick

step 3
if you using php version 7.4 use this command
sudo apt install php7.4-imagick

if you using php version 8.0 use this command
sudo apt install php8.0-imagick

step 4
php -m | grep imagick

after execute the above command output show like
imagick

 if the message does not show restart your xampp server or apache server
Santhosh Sivan S