Problem with ImageMagick and PHP on Windows
| From: | Jakob | Date: | Fri, 21 Sep 2001 14:14:40 +0000 |
| Subject: | Problem with ImageMagick and PHP on Windows | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-68154@lists.php.net to get a copy of this message | ||
Hi,
I need to retrieve image properties from an EPS graphic. therefore I installed
ImageMagick on Windows.
This command works very well on the commandline:
C:\>C:\imagemagick\identify.exe -ping -format "%m %f %b %w %h %x %y" http://ws-
tgljfix/upload/pusunybkvv.eps
However, when executed through PHP (from inside an object):
...
$cmdline = $this->_imagemagick_identify .
sprintf($this->_imagemagick_identify_flags, $this->_imgfile);
/* commandline is now:
"C:\imagemagick\identify.exe
-ping
-format \"%m %f %b %w %h %x %y\" http://ws-tgljfix/upload/pusunybkvv.eps"
*/
$res =
$cmdline;
...
It doesn't generate any output, but appends the following error message to the
Apache error log:
[Fri Sep 21 15:13:30 2001] [error] [client xxx.xx.x.xx] identify: Postscript
delegate failed [No such file or directory].
[Fri Sep 21 15:13:30 2001] [error] [client xxx.xx.x.xx] identify: Missing an
image file name.
How can I make this work through PHP on Windows? Thanks for your help. CC to
my email appreciated, as I am on the digest list.
Thanks,
Jakob.
Jakob - icq #69728667