I have PDF documents created using FPDF and I wish to convert to jpg for displaying purposes. I believe I have installed Imagick correctly and set the php.ini file to see it but when I try to suck it into my code I get the Class "Imagick" not found
error message.
Does this mean I haven't installed it correctly or is my code below not right?
if (\file_exists($cert)) {
$im = new \Imagick($cert.'[0]');
$im->setImageFormat('jpg');
header('Content-Type: image/jpg');
echo $im;
}
As always any guidance appreciated. I'm using php8.2 and I'm using WAMP on a windows machine.