I am working on creating thumbnail image from the first page of pdf file. I almost tired every solution available on the web to make ImageMagick running but I still get the following error
Fatal error: Class 'Imagick' not found in C:\wamp\www\mediabox\application\controllers\cron.php on line 153
$image = explode('.', $filename_new);
$image_name = 'files/import/' . $ftp_upload["path"] ."/". $image .".jpg";
//exec("convert -colorspace RGB -geometry 300x400! -density 200 " .$pdf_file." ". $image_name);
$img = $image.".jpg" ;
$im = new Imagick($img);
$im->writeImage( 'files/import/' . $ftp_upload["path"] ."/".$img);
I am not sure where you got your binaries from, but it seemed like something I experienced about a month ago. Some of the binaries I tried would show up in
phpinfo(), but refused to work, whereas others wouldn't even show in
I then just went ahead and compiled my own binaries as per my question here.
I just went and compiled those binaries for you. They are for x86, compiled with VC9 and there are threadsafe and non-threadsafe versions. The version is 3.1.0RC1 (latest).
You can download them here: http://min.us/mtg0Z66BI
Let me know if it works for you :)