0

I have used imagemagick concept, so I followed the instructions for Windows given in the below link,

http://php.net/manual/en/imagick.installation.php

I got

Fatal error: Class 'Imagick' not found.

I need solution for PDF to image or HTML to image conversion using PHP.

Álvaro González
  • 142,137
  • 41
  • 261
  • 360
Govindaraj
  • 21
  • 1
  • 3
  • show what you have tried ? – Tushar Gupta - curioustushar Oct 02 '13 at 09:10
  • http://php.net/manual/en/imagick.installation.php Please check above url....i followed that instruction. – Govindaraj Oct 02 '13 at 09:12
  • Which distribution do you use ? – Paul Rad Oct 02 '13 at 09:13
  • Have you done a simple `phpinfo();` to check that it is installed? – Sébastien Oct 02 '13 at 09:14
  • Can you be more specific? Did you follow all the instructions, each step completed successfully, but the extension is not still available? And that page links instructions for Windows and Linux distros. Did you follow them *all*? – Álvaro González Oct 02 '13 at 09:15
  • yes..displayed path like C:\Program Files\ImageMagick-6.8.7-Q16;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program Files\Diskeeper Corporation\Diskeeper\ – Govindaraj Oct 02 '13 at 09:17
  • Hi Paul, after completed instalation i put this php code newPseudoImage(100, 100, "magick:rose"); $im->setImageFormat("png"); $im->roundCorners(5,3); $type=$im->getFormat(); header("Content-type: $type"); echo $im->getimageblob(); ?> Then run that code i got error like Fatal error: Class 'Imagick' not found – Govindaraj Oct 02 '13 at 09:23
  • I've edited the question to mention that you use Windows (you should have done it yourself). Now, I don't believe you followed the instructions. You need a C compiler for that and I strongly suspect you don't have one. – Álvaro González Oct 02 '13 at 09:24
  • Check that extension directory is correct bin php.ini – Anthony Oct 02 '13 at 09:25
  • And tcpdf is a better library for HTML to PDF printing – Anthony Oct 02 '13 at 09:26
  • Does Imagick show up in your phpinfo page? Did you make sure you edited your php.ini file to load the extension? – starshine531 Oct 02 '13 at 11:30

0 Answers0