GR claims Imagemagick not working, but it is

tcbeatie

Joined: 2003-07-30
Posts: 18
Posted: Wed, 2003-07-30 17:02

I'm running GR 1.1b14 on MacOSX 10.2.6.

I've got Imagemagick installed, and have changed the path in im.properties, but I get the following in the log when GR starts up:

1510|INFO |ImageUtils|tmpDir: /tmp/thumbs
1513|INFO |ImageUtils|useIM: true
1513|INFO |ImageUtils|imPath: /sw/bin/convert
1544|TRACE|ImageUtils|Executing /sw/bin/convert -size 64x64 -filter Box "img/default.gif" -resize "64x64" +profile "*" /tmp/thumbs/thumb22845.gif
2045|TRACE|ImageUtils|Returned with value 1
2045|CRITI|ImageUtils|ImageMagick doesn't seem to be working. Disabling

the command works fine when I run it manually:

[ted@fuji:/Applications/Gallery Remote]
>> /sw/bin/convert -size 64x64 -filter Box "img/default.gif" -resize "64x64" +profile "*" /tmp/thumbs/thumb22845.gif
[ted@fuji:/Applications/Gallery Remote]
>> ls -l /tmp/thumbs/
total 8
-rw-r--r-- 1 ted wheel 1151 Jul 30 13:00 thumb22845.gif

Help?

 
paour
paour's picture

Joined: 2002-08-14
Posts: 1479
Posted: Fri, 2003-08-01 08:16

Hum... would it be possible that IM would return 0 on Windows when it succeeds, but 1 on MacOS X?

What about Linux? Should I make the return value configurable?

Can Unix people help out with this question?

 
alindeman
alindeman's picture

Joined: 2002-10-06
Posts: 8194
Posted: Fri, 2003-08-01 13:22

I'm for sure it returns 0 on Linux, don't know about Mac, but it seems likely that it's 0, because it's based on Unix.

 
tcbeatie

Joined: 2003-07-30
Posts: 18
Posted: Sat, 2003-08-02 16:17
paour wrote:
Hum... would it be possible that IM would return 0 on Windows when it succeeds, but 1 on MacOS X?

What about Linux? Should I make the return value configurable?

Can Unix people help out with this question?

I really doubt that IM returns different exit values on different OSes. (or at least, it shouldn't)..

I could try downloading the code and looking through it. in the interim, is there a way to disable GR's check or force-enable IM?

if it helps, I ran IM manually w/the verbose mode turned on:

[ted@fuji:/Applications/Gallery Remote]
>> /sw/bin/convert -verbose -size 64x64 -filter Box "img/default.gif" -resize "64x64" +profile "*" /tmp/thumbs/thumb22845.gif
img default.gif GIF 32x32+0+0 PseudoClass 256c 8-bit 950.0 0.0u 0:01
img/default.gif GIF 32x32=>64x64+0+0 PseudoClass 256c 8-bit 950.0 0.0u 0:01
img/default.gif=>/tmp/thumbs/thumb22845.gif GIF 32x32=>64x64+0+0 PseudoClass 256c 8-bit 0.0u 0:01

 
tcbeatie

Joined: 2003-07-30
Posts: 18
Posted: Fri, 2003-08-08 02:10
paour wrote:
Hum... would it be possible that IM would return 0 on Windows when it succeeds, but 1 on MacOS X?

What about Linux? Should I make the return value configurable?

Can Unix people help out with this question?

is there anything else we can try?

 
joel558
joel558's picture

Joined: 2003-04-10
Posts: 93
Posted: Fri, 2003-08-08 20:19

Do you have the full ImageMagick installed? or just the version that came with GR? or maybe mac release of GR doesn't come with IM...

paour,
I have confirmed this on my windows xp box as well:
I have IM installed, then when I install GR, it recognizes that the full IM is installed, but in im.properties, it still points to the version that GR installs, which is there, but GR fails when trying to execute it. Changing the IM path in im.properties from the version that GR installs, to the full version, solves the problem. I can play around with it some more if you'd like when I come back from camping on Monday or Tuesday.

joel

 
tcbeatie

Joined: 2003-07-30
Posts: 18
Posted: Sun, 2003-08-10 15:40
joel558 wrote:
Do you have the full ImageMagick installed? or just the version that came with GR? or maybe mac release of GR doesn't come with IM...

I believe I have the full ImageMagick installed, yes. I installed it via the 'fink' package management tool for MacOSX. I don't know if this is the problem GR is catching, but I ran convert with the debug option, and see the following error (the command still completes successfully, however).

>> /sw/bin/convert -debug all -verbose -size 64x64 -filter Box "img/default.gif" -resize "64x64" +profile "*" /tmp/thumbs/thumb24173.gif
11:40:06 0.05u Cache[-1610609172]: destroy
11:40:06 0.05u Configure[-1610609172]: Searching for configure file "magic.mgk" ...
11:40:06 0.06u Configure[-1610609172]: /sw/lib/ImageMagick-5.5.1/magic.mgk [Undefined error: 0]
11:40:06 0.09u Cache[-1610609172]: open img/default.gif[0] (10.0k)
img/default.gif GIF 32x32+0+0 PseudoClass 256c 8-bit 950.0 0.0u 0:01
11:40:06 0.10u Cache[-1610609172]: open img/default.gif[0] (20.0k)
11:40:06 0.12u Cache[-1610609172]: open img/default.gif[0] (40.0k)
11:40:06 0.14u Cache[-1610609172]: destroy img/default.gif[0]
11:40:06 0.14u Cache[-1610609172]: destroy img/default.gif[0]
img/default.gif GIF 32x32=>64x64+0+0 PseudoClass 256c 8-bit 950.0 0.0u 0:01
img/default.gif=>/tmp/thumbs/thumb24173.gif GIF 32x32=>64x64+0+0 PseudoClass 256c 8-bit 0.0u 0:01
11:40:06 0.17u Cache[-1610609172]: destroy img/default.gif[0]

(I've posted that same output to the ImageMagick forum as well, to see if anyone there has any ideas..)

 
paour
paour's picture

Joined: 2002-08-14
Posts: 1479
Posted: Mon, 2003-09-22 18:57

Anyone still watching this thread, please refer to this other thread for a "solution".

 
paour
paour's picture

Joined: 2002-08-14
Posts: 1479
Posted: Mon, 2003-09-22 18:58
joel558 wrote:
I have confirmed this on my windows xp box as well:
I have IM installed, then when I install GR, it recognizes that the full IM is installed, but in im.properties, it still points to the version that GR installs, which is there, but GR fails when trying to execute it. Changing the IM path in im.properties from the version that GR installs, to the full version, solves the problem.

This is now being tracked by this task.