I am trying to use ImageMagick from a Php script running under Windows XP.
I have installed the latest version of ImageMagick - 6.2.1-7 and even
tried backing up to version 5.5.7 (based on a recommendation I found
during a Google search), but I can not get ImageMagick to work in Php
(using exec or system).
ImageMagick works from a Windows Command prompt -
e.g., convert C:\apache\htdocs\testing\temp_.jpg
C:\apache\htdocs\testing\temp_.png
but that same command using the system function -
i.e., system("convert C:\apache\htdocs\testing\temp_.jpg
C:\apache\htdocs\testing\temp_.png", $retval);
always fails with a retval of either 4 or 1. (The retval was 4 until I
rebooted and tried again, and now it is always 1).
I am able to execute other windows commands (e.g. dir) from within the
system and exec functions in Php.
Can anyone help me figure out how to get ImageMagick to run from a Php
script - in Windows? I have tired using the full path to the convert
command, but that does not change anything (the ImageMagick installation
adds itself to the PATH environment variable anyway).
TIA
--
*****************************
Chuck Anderson • Boulder, CO
http://www.CycleTourist.com
Integrity is obvious.
The lack of it is common.
*****************************