Install ImageMagick: Where is gm.exe in ImageMagick

zhijianxi

Joined: 2006-06-07
Posts: 16
Posted: Thu, 2006-10-05 22:41

Gallery version (gallery-2.1.1a-full):
PHP version (e.g. 5.1.5 Win32):
Webserver (IIS6.0):
Database (MySql-5.0.22-win32):
Activated toolkits (ImageMagick-6.2.9-0-Q16-windows-dll.exe):
Operating system (Windows 2003 Server):
Browser (IE6.0):

I am trying to install the ImageMagick module, but it failed. I looked into the debugging information (included below) and it is telling me it looks for a file called gm.exe. I looked under my Win 2003 server install directory of ImageMagick(C:\Program Files\ImageMagick-6.2.9-Q16), and could not find gm.exe. I tried both ImageMagick-6.2.9-0-Q16-windows-dll.exe and ImageMagick-6.2.9-8-Q16-windows-static.exe, neither include executable of gm.exe.

Can someone point me to the right direction?

Thanks a lot.

====================================================================

ImageMagick binary test results
Binary Name Pass/Fail
identify Failed
Error messages:

Problem executing binary:
identify Failed
Error messages:

Problem executing binary:
convert Failed
Error messages:

Problem executing binary:
composite Failed
Error messages:

Problem executing binary:

=======================================================
Debug output:
=======================================================

is_dir(C:\Program Files\ImageMagick-6.2.9-Q16\)
Loading plugin imagemagick
imagemagick plugin successfully instantiated
Check the version of the imagemagick plugin
The version of the imagemagick plugin is ok
getcwd()
chdir(C:\g2data\tmp\)
file_exists(C:\Program Files\ImageMagick-6.2.9-Q16\gm.exe)
file_exists(C:\Program Files\ImageMagick-6.2.9-Q16\identify.exe)
Executing: cmd /c " "C:\Program Files\ImageMagick-6.2.9-Q16\identify.exe"
"D:\gallery2\modules\imagemagick\data\test.gif" 2>
"C:\g2data\tmp\g2d44E.tmp" "
getParameter exec.expectedStatus for core plugin
file_exists(C:\g2data\tmp\g2d44E.tmp)
filesize(C:\g2data\tmp\g2d44E.tmp)
unlink(C:\g2data\tmp\g2d44E.tmp)
Regular Output:
Error Output:

Login or register to post comments
valiant

Joined: 2003-01-04
Posts: 32356
Posted: Fri, 2006-10-06 11:03

you don't need gm.exe. that relates to graphicsmagick, an almost binary compatible fork of imagemagick.

but you should install imagemagick in a path that has no spaces in it. "Program files" has a space in the name, bad. :)

i guess the permissions are just wrong in your case. it found the "identify.exe" as you see in the above debug output. but for some reason it failed.

FAQ: I get lots of "Warning: exec(): Unable to fork [cmd /c ...]" at the module's step in the installer for G2 (on the ImageMagick module) under Windows/IIS. Now what?

and documentation -> installation requirements -> windows / iis

Login or register to post comments
zhijianxi

Joined: 2006-06-07
Posts: 16
Posted: Sat, 2006-10-07 20:36

Thanks for the help.

I am using the ImageMagick-6.2.9-8-Q16-windows-static.exe, can you confirm this is correct? The alternative is the dll.

I changed to D:\ImageMagic
I addes IUSR_SEANADA01 to the D:\ImageMagic with full control, and executed the recommended command (cacls %COMSPEC% /E /G %COMPUTERNAME%\IUSR_COMPUTERNAME%:R)

I still get the following error when I try to configure it:

==================================================================
Directory to ImageMagick/GraphicsMagick binaries: D:\ImageMagick\

==================================================================
ImageMagick binary test results
Binary Name Pass/Fail
identify Failed
Error messages:

Problem executing binary:
identify Failed
Error messages:

Problem executing binary:
convert Failed
Error messages:

Problem executing binary:
composite Failed
Error messages:

Problem executing binary:
==================================================================
is_dir(D:\ImageMagick\)
Loading plugin imagemagick
imagemagick plugin successfully instantiated
Check the version of the imagemagick plugin
The version of the imagemagick plugin is ok
getcwd()
chdir(C:\g2data\tmp\)
file_exists(D:\ImageMagick\gm.exe)
file_exists(D:\ImageMagick\identify.exe)
Executing: cmd /c " "D:\ImageMagick\identify.exe"
"D:\gallery2\modules\imagemagick\data\test.gif" 2>
"C:\g2data\tmp\g2d4F1.tmp" "
getParameter exec.expectedStatus for core plugin
file_exists(C:\g2data\tmp\g2d4F1.tmp)
filesize(C:\g2data\tmp\g2d4F1.tmp)
unlink(C:\g2data\tmp\g2d4F1.tmp)
Regular Output:
Error Output:
Status: 1 (expected 0)
file_exists(D:\ImageMagick\gm.exe)
tempnam(C:\g2data\tmp\, imgk_)
file_exists(D:\ImageMagick\convert.exe)
Executing: cmd /c " "D:\ImageMagick\convert.exe" "-size" "200x200"
"-geometry" "200x200" "D:\gallery2\modules\imagemagick\data\test.gif"
"C:\g2data\tmp\img4F2.tmp" 2> "C:\g2data\tmp\g2d4F3.tmp" "
getParameter exec.expectedStatus for core plugin
file_exists(C:\g2data\tmp\g2d4F3.tmp)
filesize(C:\g2data\tmp\g2d4F3.tmp)
unlink(C:\g2data\tmp\g2d4F3.tmp)
Regular Output:
Error Output:
Status: 1 (expected 0)
unlink(C:\g2data\tmp\img4F2.tmp)
file_exists(D:\ImageMagick\gm.exe)
file_exists(D:\ImageMagick\combine.exe)
file_exists(D:\ImageMagick\composite.exe)
file_exists(D:\ImageMagick\composite.exe)
file_exists(D:\ImageMagick\gm.exe)
tempnam(C:\g2data\tmp\, imgk_)
Executing: cmd /c " "D:\ImageMagick\composite.exe" "-geometry" "+0+0"
"D:\gallery2\modules\imagemagick\data\test.jpg"
"D:\gallery2\modules\imagemagick\data\test.gif"
"C:\g2data\tmp\img4F4.tmp" 2> "C:\g2data\tmp\g2d4F5.tmp" "
getParameter exec.expectedStatus for core plugin
file_exists(C:\g2data\tmp\g2d4F5.tmp)
filesize(C:\g2data\tmp\g2d4F5.tmp)
unlink(C:\g2data\tmp\g2d4F5.tmp)
Regular Output:
Error Output:
Status: 1 (expected 0)
unlink(C:\g2data\tmp\img4F4.tmp)
chdir(D:\gallery2)

Login or register to post comments
pinky285

Joined: 2009-09-29
Posts: 19
Posted: Tue, 2009-10-27 18:33

had to open properties of cmd.exe and give %webserver%\iusr_%webserver% rights to execute, calc and xcacls will work given the correct parameters, it may be a security risk, but i'll take the risk, i got my stuff backed up, like 3x over.

Login or register to post comments