Problem with ImageMagick-6.2.4-Q16

thorhi

Joined: 2005-09-19
Posts: 3
Posted: Mon, 2005-09-19 21:58

I'm trying to config ImageMagick into G2 to be able to create thumbnails for the pictures that I have in my albumd. When I clik on Save Settings I get the following message.

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

And when I click on Test Setings I get the following.

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) -

We gathered this debug output while testing your ImageMagick binaries. If you read through this carefully you may discover the reason why your ImageMagick binaries failed the tests.

is_dir(C:\Program Files\ImageMagick-6.2.4-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:\Inetpub\wwwroot\gallery2\g2data\tmp\)
file_exists(C:\Program Files\ImageMagick-6.2.4-Q16\gm.exe)
file_exists(C:\Program Files\ImageMagick-6.2.4-Q16\identify.exe)
Executing: cmd /c " "C:\Program Files\ImageMagick-6.2.4-Q16\identify.exe"
"C:\Inetpub\wwwroot\gallery2\modules\imagemagick\data\test.gif" 2>
"C:\Inetpub\wwwroot\gallery2\g2data\tmp\g2d15F.tmp" "
getParameter exec.expectedStatus for core plugin
file_exists(C:\Inetpub\wwwroot\gallery2\g2data\tmp\g2d15F.tmp)
filesize(C:\Inetpub\wwwroot\gallery2\g2data\tmp\g2d15F.tmp)
unlink(C:\Inetpub\wwwroot\gallery2\g2data\tmp\g2d15F.tmp)
Regular Output:
Error Output:
Status: 1 (expected 0)
file_exists(C:\Program Files\ImageMagick-6.2.4-Q16\gm.exe)
tempnam(C:\Inetpub\wwwroot\gallery2\g2data\tmp\, imgk_)
file_exists(C:\Program Files\ImageMagick-6.2.4-Q16\convert.exe)
Executing: cmd /c " "C:\Program Files\ImageMagick-6.2.4-Q16\convert.exe"
"-size" "200x200" "-geometry" "200x200"
"C:\Inetpub\wwwroot\gallery2\modules\imagemagick\data\test.gif"
"C:\Inetpub\wwwroot\gallery2\g2data\tmp\img160.tmp" 2>
"C:\Inetpub\wwwroot\gallery2\g2data\tmp\g2d161.tmp" "
getParameter exec.expectedStatus for core plugin
file_exists(C:\Inetpub\wwwroot\gallery2\g2data\tmp\g2d161.tmp)
filesize(C:\Inetpub\wwwroot\gallery2\g2data\tmp\g2d161.tmp)
unlink(C:\Inetpub\wwwroot\gallery2\g2data\tmp\g2d161.tmp)
Regular Output:
Error Output:
Status: 1 (expected 0)
unlink(C:\Inetpub\wwwroot\gallery2\g2data\tmp\img160.tmp)
file_exists(C:\Program Files\ImageMagick-6.2.4-Q16\gm.exe)
file_exists(C:\Program Files\ImageMagick-6.2.4-Q16\combine.exe)
file_exists(C:\Program Files\ImageMagick-6.2.4-Q16\composite.exe)
file_exists(C:\Program Files\ImageMagick-6.2.4-Q16\composite.exe)
file_exists(C:\Program Files\ImageMagick-6.2.4-Q16\gm.exe)
tempnam(C:\Inetpub\wwwroot\gallery2\g2data\tmp\, imgk_)
Executing: cmd /c " "C:\Program Files\ImageMagick-6.2.4-Q16\composite.exe"
"-geometry" "+0+0"
"C:\Inetpub\wwwroot\gallery2\modules\imagemagick\data\test.jpg"
"C:\Inetpub\wwwroot\gallery2\modules\imagemagick\data\test.gif"
"C:\Inetpub\wwwroot\gallery2\g2data\tmp\img162.tmp" 2>
"C:\Inetpub\wwwroot\gallery2\g2data\tmp\g2d163.tmp" "
getParameter exec.expectedStatus for core plugin
file_exists(C:\Inetpub\wwwroot\gallery2\g2data\tmp\g2d163.tmp)
filesize(C:\Inetpub\wwwroot\gallery2\g2data\tmp\g2d163.tmp)
unlink(C:\Inetpub\wwwroot\gallery2\g2data\tmp\g2d163.tmp)
Regular Output:
Error Output:
Status: 1 (expected 0)
file_exists(C:\Inetpub\wwwroot\gallery2\g2data\tmp\img162.tmp)
unlink(C:\Inetpub\wwwroot\gallery2\g2data\tmp\img162.tmp)
chdir(C:\Inetpub\wwwroot\gallery2)

The user IUSR_<hostname> has full privs on the gallery directory, PHP and ImageMagick. I have run the test on the IM from the command promt and that ran OK.

If you have a fix for this I would be very happy.

Thor Hjalmar
Iceland.


Gallery version = 2.0 core 1.0.0
PHP version = 5.0.5 isapi
Webserver = Microsoft-IIS/6.0
Database = oci8po
Toolkits = Exif
Operating system = Windows NT WIN2003 5.2 build 3790
Browser = Mozilla/5.0 (Windows; U; Windows NT 5.2; en-US; rv:1.7.10) Gecko/20050716 Firefox/1.0.6

 
h0bbel
h0bbel's picture

Joined: 2002-07-28
Posts: 13451
Posted: Mon, 2005-09-19 22:03

Move the binaries to a directory without spaces in it.

h0bbel - Gallery Team
If you found my help useful, please consider donating to Gallery
http://h0bbel.p0ggel.org

 
thorhi

Joined: 2005-09-19
Posts: 3
Posted: Tue, 2005-09-20 00:00

That did not change anything, the error is the same.

Thor Hjalmar.

 
h0bbel
h0bbel's picture

Joined: 2002-07-28
Posts: 13451
Posted: Tue, 2005-09-20 12:56

In that case, check http://codex.gallery2.org/index.php/Gallery2:Installation_on_Windows_Server_2003_and_IIS6

h0bbel - Gallery Team
If you found my help useful, please consider donating to Gallery
http://h0bbel.p0ggel.org

 
thorhi

Joined: 2005-09-19
Posts: 3
Posted: Sun, 2005-09-25 01:46

No luck still after reinstalling ImageMagick to c:\im so that is not the problem (i think). I've noticed also that I'm not the onlyone having this exact problem so I would think that the problem lies in G2.

Thor Hjalmar

 
lvthunder

Joined: 2003-09-12
Posts: 808
Posted: Sun, 2005-09-25 01:52

I'm having the same problem on our offices Intranet site. I think it has to do with either IUSR or IWAM having access to cmd.exe. I had it working on one server but we decided to move the site to a new server and I can't figure out what's different. The only thing I know for sure is that it's not gallery since it was working on our original server. I wish there was more of an error code. Does anyone know if IIS has more logs then just who requested what.

 
h0bbel
h0bbel's picture

Joined: 2002-07-28
Posts: 13451
Posted: Sun, 2005-09-25 20:33

Well, with IIS6 and ISAPI, you also need to give the Network Service access to cmd.exe, the temp dir and so on. To help troubleshoot it, check out http://www.sysinternals.com/Utilities/Filemon.html and http://www.sysinternals.com/Utilities/ProcessExplorer.html

h0bbel - Gallery Team
If you found my help useful, please consider donating to Gallery
http://h0bbel.p0ggel.org

 
seldon_26000

Joined: 2005-09-25
Posts: 1
Posted: Mon, 2005-09-26 00:02

hello there,
in fact the IUSR rights are not enough to make it works. You need also to allow the account "NT AUTHORITY\NETWORK SERVICE" to access the gallery data folder.
It works fine for me ;-)

Seldon

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Mon, 2005-09-26 05:39

please add this information on codex, if it's missing.

 
h0bbel
h0bbel's picture

Joined: 2002-07-28
Posts: 13451
Posted: Mon, 2005-09-26 06:45

It should be there, Valiant. :-)

h0bbel - Gallery Team
If you found my help useful, please consider donating to Gallery
http://h0bbel.p0ggel.org

 
Garfield-an

Joined: 2006-01-27
Posts: 1
Posted: Fri, 2006-01-27 23:17

This solution worked for me on IIS6

Thanks

 
piwko98

Joined: 2007-02-02
Posts: 2
Posted: Tue, 2007-02-06 19:03

I cannot get mine still working.

Thorhi did you ever get this running? I am getting the same errors as you are. I tried to give access to Network Services to cmd.exe in the system32 folder and g2data\tmp directory.

Anyone have any ideas?

 
chaosmosis

Joined: 2007-04-22
Posts: 1
Posted: Mon, 2007-04-23 13:17

I'm having the same problem. Installed imagemagick binaries (ImageMagick-6.3.3-10-Q16-windows-static.exe) to d:\im, opened access to everyone and the tests are failing. This is on windows server 2003. This is the 2nd server that the tests have failed on. Both Windows Server 2003.

 
drewdq

Joined: 2007-08-02
Posts: 10
Posted: Thu, 2007-08-02 18:51

I'm also having the exact same problem with:
ImageMagick-6.3.5-5-Q16-windows-static.exe
Gallery version = 2.2.2 core 1.2.0.4
PHP version = 5.1.2 isapi
Webserver = Microsoft-IIS/6.0
Database = mysqlt 4.1.14-nt, lock.system=database
Toolkits = Exif, ArchiveUpload, Thumbnail, Gd, Ffmpeg
Acceleration = none/86400, none/86400
Operating system = Windows NT NCSUSRAMCNWIKD 5.2 build 3790
Default theme = matrix
gettext = enabled
Locale = en_US
Browser = Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0)
Rows in GalleryAccessMap table = 15
Rows in GalleryAccessSubscriberMap table = 739
Rows in GalleryUser table = 3
Rows in GalleryItem table = 735
Rows in GalleryAlbumItem table = 12
Rows in GalleryCacheMap table = 0

When I run the test I get this for all 4:
Failed
Error messages:

Problem executing binary:

 
drewdq

Joined: 2007-08-02
Posts: 10
Posted: Thu, 2007-08-02 20:39

I figured out it was a permission problem. On the \gallery2\g2data\tmp folder it needs to have full permissions for IIS_WPG.

 
Speedy059

Joined: 2008-01-04
Posts: 5
Posted: Fri, 2008-01-04 19:29

Does the g2data have to be a subdirectory of Gallery? I placed it as a non-webaccessible folder a little higher up.

Edit: No it doesn't, I just forgot to put iusr permissions to my imagemagick folder.

 
lvthunder

Joined: 2003-09-12
Posts: 808
Posted: Fri, 2008-01-04 18:11

No the g2data folder should be in a non-webaccessible folder. If it's not that defeats G2's security model because you can access items through the server and not through G2.