I am creating wordpress custom plugin and in that i will use 'imagick' class. Here are the sample code that is use in my custom plugin php file:
$imagick = new Imagick();
$imagick->readImage($b);
$imagick->writeImage('output.jpg');
but in that code i have an error like: Fatal error: Uncaught Error: Class 'Imagick' not found...