Hi!
I need to use an old Windows Sever 2003. I am not allowed to make any updates, but I am allowed to install ImageMagick and I can do changes on the PHP installation. There is the newest Windows Version of PHP 5.4.25 installed. And I installed also the newest version of ImageMagick (ImageMagick-6.8.8-7-Q16-x86-dll.exe).
But I can't find an imagick.dll which is working with this installation. There is always an error when loadind the imagick.dll. I tried so many versions, also of the ImageMagick version itself. Noting worked.
I can call ImageMagick from the command line and everything works, but with PHP I am chanceless.
Is there anyone who can help me???
Thanks,
Christian.
Problems using ImageMagick with PHP under Windows Serv 2003
- fmw42
- Posts: 25562
- Joined: 2007-07-02T17:14:51-07:00
- Authentication code: 1152
- Location: Sunnyvale, California, USA
Re: Problems using ImageMagick with PHP under Windows Serv 2
Are you using PHP exec()? If so, you may need to provide the full path to IM convert in your command.
Re: Problems using ImageMagick with PHP under Windows Serv 2
Imagick and windows is a minefield - using imagemagick and exec() in php is easier.
Re: Problems using ImageMagick with PHP under Windows Serv 2
Hi!
Thanks for the hints. I changed now to the exec() function.
My problem now: Wen I try the script on the command line as administrator, everything works fine. If I try it over an webbrowser, the exec() function doesn't work. I get no errors in the php error log or in the IIS error log!?!?
Any ideas?
Thanks,
Christian.
Thanks for the hints. I changed now to the exec() function.
My problem now: Wen I try the script on the command line as administrator, everything works fine. If I try it over an webbrowser, the exec() function doesn't work. I get no errors in the php error log or in the IIS error log!?!?
Any ideas?
Thanks,
Christian.
Re: Problems using ImageMagick with PHP under Windows Serv 2
Seeing your code would be helpful.
I have never used a windows server but there could be a permissions problem? In apache you need to alter the folder permissions to 777 or 755 if you are saving an image.
What happens if you just use identify on an image?
This should print some details of the image you specify in the code:
I have never used a windows server but there could be a permissions problem? In apache you need to alter the folder permissions to 777 or 755 if you are saving an image.
What happens if you just use identify on an image?
This should print some details of the image you specify in the code:
Code: Select all
<?php
system("convert image.jpg -identify ");
?>