Imagemagick could not be found ...

mohsho

Joined: 2008-12-03
Posts: 9
Posted: Tue, 2008-12-09 17:47

I actually switched to Gallery Remote in hopes of getting rid of this problem, but it's the same with GR and with the upload applet. I have followed the instructions on this page:

http://www.imagemagick.org/script/binary-releases.php#macosx

Here are the results of these instructions from the terminal:

DYLD_LIBRARY_PATH=Applications/ImageMagick-6.4.6/lib
MAGICK_HOME=Applications/ImageMagick-6.4.6
PATH=Applications/ImageMagick-6.4.6/bin:/bin:/sbin:/usr/bin:/usr/sbin

I am using OSX 10.4.11 and Gallery Remote 1.5.1-b43.

I have seen people mentioning this in the forums, but none of the suggestions/solutions have helped. Although I was previously able to upload to one of my Gallery installations properly, now I'm not able to. Depending what I try, I end up with black thumbnails, large photos, funny coloured photos, etc. I have tried fooling around with the Toolkit priority. Regardless, I really want to get ImageMagick working ASAP.

Thank you, in advance, for your help.

 
paour
paour's picture

Joined: 2002-08-14
Posts: 1479
Posted: Wed, 2008-12-10 07:52

Would you mind attaching your GR log, so I can take a look?

FAQ: Log, what log?

--
Gallery Remote developer

 
mohsho

Joined: 2008-12-03
Posts: 9
Posted: Wed, 2008-12-10 15:31

Here are the lines from the log that I thought you might need:

198|TRACE|UsrProps |useJavaResize= |true| [user]
198|TRACE|UsrProps |useProxy= |false| [user]
198|TRACE|UsrProps |username.0= |*****| [user]
198|TRACE|UsrProps |username.1= |*****| [user]
198|TRACE|UsrProps |version= |1.5.1-b43| [defaults]
701|TRACE|PropsFile |Trying to find Gallery Remote.lax in Classpath
702|TRACE|PropsFile |Trying to find Gallery Remote.lax in Current Working Dir
702|INFO |Update |LAX file not found: probably running from Ant or IDE...
2148|INFO |GRI18n |en_US
2420|INFO |ImageUtils|tmpDir: /tmp/thumbs-tshore
2424|TRACE|PropsFile |Trying to find imagemagick/im.properties in Current Working Dir
2449|INFO |ImageUtils|useIM: true
2449|INFO |ImageUtils|imPath: /usr/local/bin/convert
2449|INFO |ImageUtils|imIgnoreErrorCode: false
2449|CRITI|ImageUtils|Can't find ImageMagick Convert at the above path
2637|TRACE|PropsFile |Trying to find jpegtran/jpegtran.properties in Current Working Dir
2638|INFO |ImageUtils|useJpegtran: true
2638|INFO |ImageUtils|jpegtranPath: Contents/MacOS/jpegtran
2638|INFO |ImageUtils|jpegtranIgnoreErrorCode: false
2643|TRACE|PictInspec|emptyIconHeight: 16
3062|INFO |GalRem |Trying to securely load com.gallery.GalleryRemote.util.MacOSXAdapter

 
paour
paour's picture

Joined: 2002-08-14
Posts: 1479
Posted: Wed, 2008-12-10 16:13

In GR 1.5.1b43 and later, you should no longer have to specify the path to ImageMagick, it will find it in the path. You probably followed posts that instructed you to alter properties files in the application package, or the GalleryRemote.properties in your ~/.GalleryRemote folder. Could you go back to setting the im.convertPath property to just convert?

Also, you'll probably want to read these instructions...

--
Gallery Remote developer

 
mohsho

Joined: 2008-12-03
Posts: 9
Posted: Wed, 2008-12-10 18:44
Quote:
In GR 1.5.1b43 and later, you should no longer have to specify the path to ImageMagick, it will find it in the path.

Still got the same warning "Imagemagick could not be found ..." after installing 1.5.1b43 and I hadn't messed around with any path business at that point.

Quote:
You probably followed posts that instructed you to alter properties files in the application package, or the GalleryRemote.properties in your ~/.GalleryRemote folder.

No.

Quote:
Could you go back to setting the im.convertPath property to just convert?

No idea how to do this, but I assume that it's not necessary, since I didn't do anything like this in the first place.

Quote:
Also, you'll probably want to read these instructions...

I had read these before, but I thought it didn't apply to my situation since I didn't use MacPorts to install ImageMagick.

I went ahead and created /etc/launchd.conf with this one line in it:

setenv PATH Applications/ImageMagick-6.4.6/bin:/usr/bin:/bin/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin

but, it didn't help. Same error. Same stuff in the log file.

 
paour
paour's picture

Joined: 2002-08-14
Posts: 1479
Posted: Wed, 2008-12-10 21:10

Could you run the GR applet and post the log? How did you install the application (WebStart from your site, or by downloading the Mac GR installer)?

--
Gallery Remote developer

 
mohsho

Joined: 2008-12-03
Posts: 9
Posted: Wed, 2008-12-10 21:53
Quote:
Could you run the GR applet and post the log?

I've attached the log.

Quote:
How did you install the application (WebStart from your site, or by downloading the Mac GR installer)?

I guess I downloaded the installer, but I don't remember installing anything? Rather I just dropped it into my Applications folder. It was just one file.

 
paour
paour's picture

Joined: 2002-08-14
Posts: 1479
Posted: Thu, 2008-12-11 07:18

Sorry again, the applet on your site is the one from G 2.3. Could you try with my site: h**p://www.paour.com/gallery (you can use the fullscreen slideshow, it's the same code) and post the log again?

--
Gallery Remote developer

 
mohsho

Joined: 2008-12-03
Posts: 9
Posted: Thu, 2008-12-11 15:13

Just visited your Gallery. Here are the bits of the log I think you need:

4496|INFO |ImageUtils|useIM: true
4496|INFO |ImageUtils|imPath: convert
4497|INFO |ImageUtils|imIgnoreErrorCode: false
4497|TRACE|ImageUtils|Executing [convert]
5405|TRACE|ImageUtils|Err: dyld: Library not loaded: /ImageMagick-6.4.6/lib/libMagickCore.1.dylib
5405|TRACE|ImageUtils|Err: Referenced from: //Applications/ImageMagick-6.4.6/bin/convert
5405|TRACE|ImageUtils|Err: Reason: image not found
5405|TRACE|ImageUtils|Returned with value 133
5405|CRITI|ImageUtils|ImageMagick doesn't seem to be working. Disabling

I've attached the whole thing, just in case.

 
mohsho

Joined: 2008-12-03
Posts: 9
Posted: Fri, 2008-12-12 20:51

Paour you've disappeared? I felt like we were so close to having this working...

 
paour
paour's picture

Joined: 2002-08-14
Posts: 1479
Posted: Mon, 2008-12-15 15:49

OK, so I think the reason ImageMagick is not working for you is because it doesn't expect to be called from a non-console application. In your case, the three environment variables you declared when you installed ImageMagick aren't there when you run it through GR.

Quote:
export MAGICK_HOME="$HOME/ImageMagick-6.4.7"
export PATH="$MAGICK_HOME/bin:$PATH"
export DYLD_LIBRARY_PATH="$MAGICK_HOME/lib"

You seem to have installed ImageMagick in /Applications rather than in your /Users/<username> home directory. That's fine, and not the source of the problem.

I think the easiest way to solve this is to rename your /Applications/bin/ImageMagick-6.4.6/convert to convert1 for example, then create a file called convert in its place, with the following contents:

Quote:
#!/bin/sh -x

export MAGICK_HOME="/Applications/ImageMagick-6.4.7"
export DYLD_LIBRARY_PATH="$MAGICK_HOME/lib"
convert1 $@

Sorry for disapearing on you...

--
Gallery Remote developer

 
mohsho

Joined: 2008-12-03
Posts: 9
Posted: Mon, 2008-12-15 22:12

Still get the warning. I've attached the log again.

 
paour
paour's picture

Joined: 2002-08-14
Posts: 1479
Posted: Tue, 2008-12-16 06:12

For some reason, your imPath is back to '/usr/local/bin/convert', rather than the expected 'convert'. Can you check your GalleryRemoteApplet.properties and remove references to imPath?

--
Gallery Remote developer

 
mohsho

Joined: 2008-12-03
Posts: 9
Posted: Tue, 2008-12-16 15:58

Not so easy to track down, this file, but I finally found it. There is no reference to imPath in either GalleryRemoteApplet.properties or GalleryRemote.properties. I have attached both files.

 
paour
paour's picture

Joined: 2002-08-14
Posts: 1479
Posted: Thu, 2008-12-25 08:43

Sorry, I'm away on holidays, I'll pick this up in January.

--
Gallery Remote developer

 
mohsho

Joined: 2008-12-03
Posts: 9
Posted: Fri, 2009-01-16 21:09

Hi Paour: It's January now...

 
paour
paour's picture

Joined: 2002-08-14
Posts: 1479
Posted: Wed, 2009-01-21 09:57

Sorry for the delay. The log you sent on Dec. 16th seems to have been from running the application, not the applet on my site. Would you mind trying again with my applet?

--
Gallery Remote developer