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 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. |
|
Posts: 1479
Would you mind attaching your GR log, so I can take a look?
FAQ: Log, what log?
--
Gallery Remote developer
Posts: 9
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
Posts: 1479
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
Posts: 9
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.
No.
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.
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.
Posts: 1479
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
Posts: 9
I've attached the log.
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.
Posts: 1479
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
Posts: 9
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.
Posts: 9
Paour you've disappeared? I felt like we were so close to having this working...
Posts: 1479
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.
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:
Sorry for disapearing on you...
--
Gallery Remote developer
Posts: 9
Still get the warning. I've attached the log again.
Posts: 1479
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
Posts: 9
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.
Posts: 1479
Sorry, I'm away on holidays, I'll pick this up in January.
--
Gallery Remote developer
Posts: 9
Hi Paour: It's January now...
Posts: 1479
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