Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
$img = new imagick($url.'[0]');
$im->setImageColorspace(255);
$im->setCompressionQuality(95);
$im->setImageFormat('jpeg');
I have install imagick 3.1.0RC2 with the soft ImageMagick 6.7.7-10 2012-06-27 Q16 (x86). I also have a x86 PHP 5.4.22 non thread and I'm using IIS 8 on a windows server 2012. The php_imagick.dll is for 5.14 nts so it should work. The ghostscript version is gs9.10, I installed 32 and 64 bits. it is working perfectly with the msdos command line but no with PHP.
and then I got this error when I create the object.
ImagickException: Postscript delegate failed `D:\inetpub\website\sites\default\files\image_2.pdf': No such file or directory @ error/pdf.c/ReadPDFImage/677 in Imagick->__construct()
is it an environment variables problem ? I've got the imagick folder and the bin folder of ghostscript as windows environment variable.
Any ideas ?
Cheers
Last edited by Namari on 2014-01-06T21:24:50-07:00, edited 1 time in total.
Try a file of another format, such as gif, jpg, png. Does that work? If so, the perhaps it is not finding Ghostscript or the directory is password protected? Or try getting an image from some other more common web site, such as google or yahoo. Does that work?
I finally found out what was the problem !
The problem is the temporary folder of windows (c:\windows\temp) has to be read and write for the user IUSR or IIS_IUSRS (depending of your ISS version) Thank you guys for your help
I had precisely the same issues describe in this thread, and Namari's final solution (changing file permissions on C:\Windows\Temp) resolved the problem. Much appreciated!