ImageMagick error

When I try to upload an image, I get the error: "ImageMagick is not properly configured. Please check your settings and then try again." This is on Ubuntu server 7.10 . I verified that the archive folders are set to write enabled (777). I have Image Magic installed. When I enter the command "which convert", the path is /usr/local/bin/convert which matches the path in Omeka settings page.

What else should I check?

Can you verify that convert is actually running? you could try /usr/local/bin/convert on the command line. Also, if that doesn't work, this is just a shot in the dark, but on line 346 of application/models/File.php, you could change $path . ' -version' to just $path. Let me know how it goes.

Correction, I meant that if convert does work on the command line, but your installation is still broken, you should try the second thing.

Thank's Kris, I figured it out. Even though the command "which convert" shows usr/bin/local/convert , the correct path for imagemagick convert in my case was /usr/bin/convert . Setting this for my path in the Settings page made the error message disappear.

Thanks again!

Tonu

FYI:
I was having this issue as well --

hosting: pair.com
path to convert: /usr/local/bin/convert

I did indeed have to make the suggested change in File.php in order to correct the issue.

Also, because I can run under php-cgiwrap on pair, I didn't have to set the folders in archive to 777 - they can stay 755, which makes me much more comfortable.

I'm having problems getting the ImageMagick settings to work even though my sysadmin has assured me that I've entered the correct path (/usr/bin/). I have ImageMagick 6.4.3 on my server.

I wanted to try the hacks above, but it looks like the file information is out of date. File.php no longer has 346 lines, so I'm wondering whether that line was moved to a different file.

I'd appreciate any help you might be able to give me. Thanks!

Hi Matt,

We've fixed the problem that tmikk was experiencing a year ago, so it shouldn't affect your installation. What's the exact error message that you're seeing, and on what page is it displaying?

Dave

Hi Dave,

Thanks for your response. Here are some of the errors I'm receiving:

When trying to upload a single image file from my computer in Items > Files > Add file:
"ImageMagick is not properly configured: invalid directory given for the ImageMagick command!" (plus, under Settings > Path to convert, I get a "fail" result on the test)

When trying to use dropbox: "The file 'pic4.jpg' is missing and could not be ingested., The file 'pic4.jpg' could not be ingested because it is not readable." (even though both the file itself and the containing folder are - 777)

I'm also finding the following debug error in the log: "DEBUG (7): Could not retrieve element text for the element named "IPTC Array"

Any ideas? Thanks in advance for your help.

Matt

Can you try uploading a different image that doesn't have IPTC metadata? I wonder if there's a problem extracting the metadata from the file, which is causing Omeka to fail.

Hi Dave,

I tried adding a few basic files (gifs created in Fireworks) but I'm still getting errors. here are some of the messages I got this time:

2009-08-05T15:41:54-05:00 DEBUG (7): Could not retrieve element text for the element named "Exif Array"
2009-08-05T15:41:54-05:00 DEBUG (7): Could not retrieve element text for the element named "Exif String"
2009-08-05T15:41:54-05:00 DEBUG (7): Could not retrieve element text for the element named "IPTC Array"
2009-08-05T15:59:06-05:00 ERR (3): The file 'profile-notification-settings.gif' is missing and could not be ingested., The file 'xyz.gif' could not be ingested because it is not readable.

Hi Matt,

We're still looking into this, but so far no ideas. Any chance you could post those images somewhere so I could download them and try to upload them on my test installation? That will help us track down this error.

Thanks,
Jeremy