Re: Problem with ImageMagick and PHP on Windows
| From: | Richard Lynch | Date: | Sat, 22 Sep 2001 04:18:10 +0000 |
| Subject: | Re: Problem with ImageMagick and PHP on Windows | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-68271@lists.php.net to get a copy of this message | ||
You don't have newlines in $cmd, do you??? Don't do that.
You may also need to http://php.net/setenv to set up PATH so
that
identify.exe can find whatever filter/DLL/plug-in thingie it needs to find
to do EPS files, identify.exe uses that kind of "plug-in" architecture.
--
WARNING richard@zend.com address is an endangered species -- Use
ceo@l-i-e.com
Wanna help me out? Like Music? Buy a CD: http://l-i-e.com/artists.htm
Volunteer a little time: http://chatmusic.com/volunteer.htm
----- Original Message -----
From: Jakob <jakob@free.fr>
Newsgroups: php.general
To: <php-general@lists.php.net>
Sent: Friday, September 21, 2001 9:14 AM
Subject: Problem with ImageMagick and PHP on Windows
>
> 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
>