I have a strange error in the image magick php module.
ImagickException [ 1 ]: Postscript delegate failed '/tmp/magick-XXxIARsr': wd7C.cache @ error/pdf.c/ReadPDFImage/638
From what it seems it's a problem with authorization.
I have suphp and suexec in apache. I think there is a problem with the cache path. but i changed it in the configure.xml file and the path is still the same.
Do you have any idea ?
$images = new Imagick($_SERVER['DOCUMENT_ROOT'].$pdf_file); foreach($images as $i =>$image){ $image->setImageFormat('png'); $image->contrastImage( 1 ); $image->sharpenImage( 2,1 ); $image->scaleImage(0, 800); $image->writeImage($save_path.$i.'.png'); $picture_path[] = $filename.'-'.$i.'.png'; }