ImageMagick Cannot configure

fkkyung

Joined: 2009-02-19
Posts: 4
Posted: Fri, 2011-06-24 01:51

Hi,

I installed the Gallery 2 with IIS6 in Windows Server 2003.

I also installed the ImageMagick in C:\IM. the installation pack is ImageMagick-6.4.8-5-Q16-windows-static.exe

The C:\IM folder & CMD.exe has been assign the IUSR & Network Service permission

The C:\IM is also in the PATH of Environment Variables

The problems is I cannot configure the ImageMagick in Gallery2

I entry the C:\IM in the Direcory of ImageMagick and a pop-up error disppear when I press save.

"The path you entered doesn't contain valid ImageMagick binaries. Use the 'test' button to check where the error is."

When I press Test Settings and found the below result

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 (4 failed tests)
is_dir(C:\IM\)
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:\gallery2\g2data\tmp\)
is_dir(C:\IM\)
file_exists(C:\IM\gm.exe)
file_exists(C:\IM\identify.exe)
Executing: cmd /c " "C:\IM\identify.exe"
"C:\gallery2\modules\imagemagick\data\test.gif" 2>
"C:\gallery2\g2data\tmp\g2dCC2.tmp" "
getParameter exec.expectedStatus for core plugin
file_exists(C:\gallery2\g2data\tmp\g2dCC2.tmp)
filesize(C:\gallery2\g2data\tmp\g2dCC2.tmp)
unlink(C:\gallery2\g2data\tmp\g2dCC2.tmp)
Regular Output:
Error Output:
Status: 1 (expected 0)
is_dir(C:\IM\)
file_exists(C:\IM\gm.exe)
tempnam(C:\gallery2\g2data\tmp\, imgk_)
file_exists(C:\IM\convert.exe)
Executing: cmd /c " "C:\IM\convert.exe" "-size" "200x200" "-geometry"
"200x200" "C:\gallery2\modules\imagemagick\data\test.gif"
"gif:C:\gallery2\g2data\tmp\imgCC3.tmp" 2>
"C:\gallery2\g2data\tmp\g2dCC4.tmp" "
getParameter exec.expectedStatus for core plugin
file_exists(C:\gallery2\g2data\tmp\g2dCC4.tmp)
filesize(C:\gallery2\g2data\tmp\g2dCC4.tmp)
unlink(C:\gallery2\g2data\tmp\g2dCC4.tmp)
Regular Output:
Error Output:
Status: 1 (expected 0)
unlink(C:\gallery2\g2data\tmp\imgCC3.tmp)
is_dir(C:\IM\)
file_exists(C:\IM\gm.exe)
file_exists(C:\IM\combine.exe)
file_exists(C:\IM\composite.exe)
file_exists(C:\IM\composite.exe)
is_dir(C:\IM\)
file_exists(C:\IM\gm.exe)
tempnam(C:\gallery2\g2data\tmp\, imgk_)
Executing: cmd /c " "C:\IM\composite.exe" "-geometry" "+0+0"
"C:\gallery2\modules\imagemagick\data\test.jpg"
"C:\gallery2\modules\imagemagick\data\test.gif"
"gif:C:\gallery2\g2data\tmp\imgCC5.tmp" 2>
"C:\gallery2\g2data\tmp\g2dCC6.tmp" "
getParameter exec.expectedStatus for core plugin
file_exists(C:\gallery2\g2data\tmp\g2dCC6.tmp)
filesize(C:\gallery2\g2data\tmp\g2dCC6.tmp)
unlink(C:\gallery2\g2data\tmp\g2dCC6.tmp)
Regular Output:
Error Output:
Status: 1 (expected 0)
unlink(C:\gallery2\g2data\tmp\imgCC5.tmp)
chdir(C:\gallery2)

I have been read many pages which are related to ImageMagick but still cannot fix this problem.

Can somebody help me please? I have a lot of EPS image need to upload to the album.

Thanks for your help
Frankie

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16504
Posted: Fri, 2011-06-24 06:00

Try executing the command yourself. You can see what Gallery is trying to do:

Executing: cmd /c " "C:\IM\convert.exe" "-size" "200x200" "-geometry"
"200x200" "C:\gallery2\modules\imagemagick\data\test.gif"
"gif:C:\gallery2\g2data\tmp\imgCC3.tmp" 2>
"C:\gallery2\g2data\tmp\g2dCC4.tmp" "

If you're doing it from the command line, you'll probably have to clean some of that up or change some of it. I'd make sure that's working right first. Also, did you make sure that the IUSR has execute permissions on the binary files?
____________________________________________
Like Gallery? Like the support? Donate now!

 
fkkyung

Joined: 2009-02-19
Posts: 4
Posted: Fri, 2011-06-24 06:37

Thanks for your reply.

I found the I fotgot the assign IIS_WPG permission on g2data\tmp folder.

Now is ok.

Thanks