[SOLVED] ImageMagick binary test results show failure for convert.exe; IM 6.4.2

jrevillini

Joined: 2008-06-18
Posts: 20
Posted: Thu, 2008-07-17 19:03

I'm trying to configure Imagemagick on a win2k3 box. I have tried everything I can think of to get it working, but I keep getting an error in trying to run convert.exe. here's the debug dump i get when I test the settings:

is_dir(c:\web\lib\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:\web\gallery2\data\tmp\)
file_exists(c:\web\lib\im\gm.exe)
file_exists(c:\web\lib\im\identify.exe)
Executing: cmd /c " "c:\web\lib\im\identify.exe" 
"C:\web\gallery2\app\modules\imagemagick\data\test.gif"  2>
"C:\web\gallery2\data\tmp\g2dC0A.tmp" "
getParameter exec.expectedStatus for core plugin
file_exists(C:\web\gallery2\data\tmp\g2dC0A.tmp)
filesize(C:\web\gallery2\data\tmp\g2dC0A.tmp)
unlink(C:\web\gallery2\data\tmp\g2dC0A.tmp)
Regular Output:
C:\web\gallery2\app\modules\imagemagick\data\test.gif GIF 50x50 50x50+0+0
8-bit PseudoClass 8c 2.3e+002b
Error Output:
Status: 0 (expected 0)
file_exists(c:\web\lib\im\gm.exe)
tempnam(C:\web\gallery2\data\tmp\, imgk_)
file_exists(c:\web\lib\im\convert.exe)
Executing: cmd /c " "c:\web\lib\im\convert.exe"  "-size"  "200x200" 
"-geometry"  "200x200" 
"C:\web\gallery2\app\modules\imagemagick\data\test.gif" 
"C:\web\gallery2\data\tmp\imgC0B.tmp"  2>
"C:\web\gallery2\data\tmp\g2dC0C.tmp" "
getParameter exec.expectedStatus for core plugin
file_exists(C:\web\gallery2\data\tmp\g2dC0C.tmp)
filesize(C:\web\gallery2\data\tmp\g2dC0C.tmp)
fopen(C:\web\gallery2\data\tmp\g2dC0C.tmp, r, 0)
feof(Resource id #117)
fgets(Resource id #117, 4096)
feof(Resource id #117)
fgets(Resource id #117, 4096)
feof(Resource id #117)
fclose(Resource id #117)
unlink(C:\web\gallery2\data\tmp\g2dC0C.tmp)
Regular Output:
Error Output:
convert.exe: no encode delegate for this image format
`C:\web\gallery2\data\tmp\imgC0B.tmp'.
Status: 1 (expected 0)
unlink(C:\web\gallery2\data\tmp\imgC0B.tmp)
file_exists(c:\web\lib\im\gm.exe)
file_exists(c:\web\lib\im\combine.exe)
file_exists(c:\web\lib\im\composite.exe)
file_exists(c:\web\lib\im\composite.exe)
file_exists(c:\web\lib\im\gm.exe)
tempnam(C:\web\gallery2\data\tmp\, imgk_)
Executing: cmd /c " "c:\web\lib\im\composite.exe"  "-geometry"  "+0+0" 
"C:\web\gallery2\app\modules\imagemagick\data\test.jpg" 
"C:\web\gallery2\app\modules\imagemagick\data\test.gif" 
"C:\web\gallery2\data\tmp\imgC0D.tmp"  2>
"C:\web\gallery2\data\tmp\g2dC0E.tmp" "
getParameter exec.expectedStatus for core plugin
file_exists(C:\web\gallery2\data\tmp\g2dC0E.tmp)
filesize(C:\web\gallery2\data\tmp\g2dC0E.tmp)
fopen(C:\web\gallery2\data\tmp\g2dC0E.tmp, r, 0)
feof(Resource id #119)
fgets(Resource id #119, 4096)
feof(Resource id #119)
fgets(Resource id #119, 4096)
feof(Resource id #119)
fclose(Resource id #119)
unlink(C:\web\gallery2\data\tmp\g2dC0E.tmp)
Regular Output:
Error Output:
composite.exe: no encode delegate for this image format
`C:\web\gallery2\data\tmp\imgC0D.tmp'.
Status: 1 (expected 0)
unlink(C:\web\gallery2\data\tmp\imgC0D.tmp)
chdir(C:\web\gallery2\app)

The part I bolded baffles me. Compared to others who had the "no encode delegate..." message, in my case, it's trying to convert a .tmp file. Everyone else I saw who had similar problems were trying to convert a specific file type, not a temporary file. So why is it trying to convert a .tmp file?

Could it be that the test script is just wrong?

Other slightly pertinent info:
- tried giving "Everyone" full control of my IM directory
- tried various versions of IM
- updated to latest SVN of G2 today
- uninstalled/reinstalled plugin for IM
- I've installed g2 on an XP box before and imagemagick was never an issue, but not sure what the different could be
- I've got NETPBM, gd2, dcraw, and ffmpeg working ... so it's not just an "executable" thing I don't think.


Gallery version = 2.3-RC1 core 1.2.36
API = Core 7.54, Module 3.9, Theme 2.6, Embed 1.4
PHP version = 5.2.6 isapi
Webserver = Microsoft-IIS/6.0
Database = mysqli 5.0.51b-community-nt, lock.system=database
Toolkits = Exif, LinkItemToolkit, Ffmpeg, Gd, Thumbnail, NetPBM, Dcraw
Acceleration = none, none
Operating system = Windows NT TX-MIT-D-INTRAN 5.2 build 3790
Default theme = matrix
gettext = enabled
Locale = en_US
Browser = Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9) Gecko/2008052906 Firefox/3.0
Rows in GalleryAccessMap table = 15
Rows in GalleryAccessSubscriberMap table = 10
Rows in GalleryUser table = 2
Rows in GalleryItem table = 7
Rows in GalleryAlbumItem table = 1
Rows in GalleryCacheMap table = 0

 
jrevillini

Joined: 2008-06-18
Posts: 20
Posted: Fri, 2008-07-18 14:41

More information:
I copied the convert command to the command line and executed it, which produced no error, and created the second .tmp file, but not the first. Then I decided to chop off the final renaming parameter "2>c:\web\lib\im\blah.gif" and ran the command again. Finally, i got the same error about the encode delegate on the command line.

So I know now that this isn't a permissions issue. Furthermore, since I hadn't seen ANY web sites which talk about using convert to go to a .tmp file, I changed the temporary file name to image.gif and ran the command again. This worked, insomuch as there were no errors, the new image was created in the tmp directory, it's name was image.gif, and it was 200x200.

But it still doesn't explain why this would work on an XP box and not on a 2003 server box. Weird. I know I'm missing something.

 
jrevillini

Joined: 2008-06-18
Posts: 20
Posted: Fri, 2008-07-18 14:48

HELL YEAH! I got it. ImageMagick-6.4.2xxxxxx.exe ain't working on Win2k3 no way, no how. I downgraded to the same version of ImageMagick that i was running on the XP box, which was ImageMagick-6.4.1-8-Q16-windows-static.exe and it was all good!

Can anyone tell me if this indicates a bug in IM and whether I should file anything with them?

 
suffi

Joined: 2008-07-18
Posts: 1
Posted: Sat, 2008-07-19 00:17
jrevillini wrote:
HELL YEAH! I got it. ImageMagick-6.4.2xxxxxx.exe ain't working on Win2k3 no way, no how. I downgraded to the same version of ImageMagick that i was running on the XP box, which was ImageMagick-6.4.1-8-Q16-windows-static.exe and it was all good!

Can anyone tell me if this indicates a bug in IM and whether I should file anything with them?

I just have to tell YOU jrevillini, i FRIGGIN LOVE YOU !!!!!!!!! been working on this one all day with ImageMagick-6.4.2xxxxxx.exe (just on a Vista Home)but just like you i just couldnt get it working nomatter what i tried (half broke my server because all the "fixes" i tried out, but now i got it working because of you.
SUPERMANY THANKS for actually thinking of others and posting your solution to the problem.

I registered just to thank you. !

kind regards
Suffi

 
jrevillini

Joined: 2008-06-18
Posts: 20
Posted: Mon, 2008-07-21 12:45

Now that's a great response to walk in to on a Monday morning! :) Thank YOU for taking the time to register and let me know that this worked for you as well. I'm glad it wasn't just me. I know what you mean about half-breaking the server with all the different attempts to find the problem. I was doing the same thing.

So I guess the moral of the story is that when fixing a software issue and you're looking at all the things that might be wrong and you look at something and say "Nah - it couldn't be that..."

YEAH, it *is* that. Have a great day.

 
lachmish

Joined: 2008-07-27
Posts: 1
Posted: Sun, 2008-07-27 18:52

Thanks man you are a saver ...
Where can I get olg binaries of ImageMagic for windows?

 
jrevillini

Joined: 2008-06-18
Posts: 20
Posted: Mon, 2008-07-28 13:03

It looks like they take them down when the new releases come out. I don't have access to the computer where the 6.4.1 binary installation is at the moment, but I will tomorrow. I'll upload it to my website and post a link as soon as I can. I had originally tried adding it to my post, but it exceeded their upload size.

 
jrevillini

Joined: 2008-06-18
Posts: 20
Posted: Mon, 2008-07-28 13:19

Hey, I just found a link to a mirror that still has the 6.4.1 binary.

ImageMagick-6.4.1-8-Q16-windows-static.exe

And here's the full list of archived IM versions if anyone needs it.

 
ramik

Joined: 2008-08-07
Posts: 1
Posted: Thu, 2008-08-07 10:24

Honestly.. THANK YOU!!

 
jrevillini

Joined: 2008-06-18
Posts: 20
Posted: Thu, 2008-08-07 14:39

Just to be complete here, I want to mention that there's no need to file a bug against either G2 or IM. There is a bug report for G2 which covers the issue, and a discussion over at the IM forum ('Problem using convert' by lachmish) indicates that basically the syntax for converting these temp files is supposed to change for IM7, but they may have jumped the gun a little and made the new syntax mandatory in IM 6.4.2.

Also, we can all rest easy; virshu states that G2.3 RC-2 does/will contain the windows binary that works. Great success!

 
chrisemersonnc

Joined: 2008-07-30
Posts: 3
Posted: Fri, 2008-08-29 03:36

O M F G.............
I LOVE YOU MAN! you are the F-ING MAN!!

THANK YOU!

 
jrevillini

Joined: 2008-06-18
Posts: 20
Posted: Fri, 2008-08-29 13:13

you're welcome! glad it helped!

 
Hutchmeister

Joined: 2008-09-11
Posts: 1
Posted: Thu, 2008-09-11 11:17

Thanks jrevillini, very very very helpful... very!

By the way, for anyone wanting the dll version, it's also still on the same site: http://image_magick.veidrodis.com/image_magick/binaries/ImageMagick-6.4.1-8-Q16-windows-dll.exe

 
studiogrynn

Joined: 2008-09-23
Posts: 3
Posted: Tue, 2008-09-23 19:13

To everyone who contributed to this workaround.....
Thank you, thank you, thank you.

John

 
eeldivad

Joined: 2005-09-19
Posts: 42
Posted: Wed, 2009-06-10 04:48

it looks like the problem is gallery2 is trying to convert test.gif to something.tmp and the new versions of imagemagick fails since it doesn't recognize .tmp extensions as being an image. so either imagemagick needs to allow tmp files, or gallery2 needs to change the code to convert to the real extension instead of .tmp. i think gallery2 needs to fix it, i'll try to submit a bug if i can find where. this way we can use the new versions if needed cuz i'm sure a ton of ppl having this issue too.

thanks for posting the old binaries, u guys saved me a ton of work :)