ImageMagick path on Mac OS X & Omeka_File_Derivative_Exception

Hi.

This has been discussed on the forum many times, but none of the other threads seem to be offering a solution that works for me.

I instlled ImageMagick with Homebrew:

macpro:~ ttasovac$ convert -v
Version: ImageMagick 6.8.6-3 2013-08-14 Q16 http://www.imagemagick.org
Copyright: Copyright (C) 1999-2013 ImageMagick Studio LLC

I set the correct path (/usr/local/bin) in Omeka settings, but this path is NOT recognized and trying to upload an item, i get the following errors:

#0 /Users/ttasovac/Development/prepis.org/trunk/application/libraries/Omeka/File/Derivative/Image/Creator.php(26): Omeka_File_Derivative_Image_Creator->setImageMagickDirPath('/usr/local/bin')
#1 /Users/ttasovac/Development/prepis.org/trunk/application/models/File.php(356): Omeka_File_Derivative_Image_Creator->__construct('/usr/local/bin')
#2 /Users/ttasovac/Development/prepis.org/trunk/application/models/Job/FileProcessUpload.php(22): File->createDerivatives()
#3 /Users/ttasovac/Development/prepis.org/trunk/application/libraries/Omeka/Job/Dispatcher/Adapter/Synchronous.php(25): Job_FileProcessUpload->perform()
#4 /Users/ttasovac/Development/prepis.org/trunk/application/libraries/Omeka/Job/Dispatcher/Default.php(136): Omeka_Job_Dispatcher_Adapter_Synchronous->send('{"className":"J...', Array)
#5 /Users/ttasovac/Development/prepis.org/trunk/application/models/File.php(209): Omeka_Job_Dispatcher_Default->send('Job_FileProcess...', Array)
#6 [internal function]: File->afterSave(Array)
#7 /Users/ttasovac/Development/prepis.org/trunk/application/libraries/Omeka/Record/AbstractRecord.php(277): call_user_func(Array, Array)
#8 /Users/ttasovac/Development/prepis.org/trunk/application/libraries/Omeka/Record/AbstractRecord.php(550): Omeka_Record_AbstractRecord->runCallbacks('afterSave', Array)
#9 /Users/ttasovac/Development/prepis.org/trunk/application/models/Item.php(322): Omeka_Record_AbstractRecord->save()
#10 /Users/ttasovac/Development/prepis.org/trunk/application/models/Item.php(235): Item->saveFiles()
#11 [internal function]: Item->afterSave(Array)
#12 /Users/ttasovac/Development/prepis.org/trunk/application/libraries/Omeka/Record/AbstractRecord.php(277): call_user_func(Array, Array)
#13 /Users/ttasovac/Development/prepis.org/trunk/application/libraries/Omeka/Record/AbstractRecord.php(550): Omeka_Record_AbstractRecord->runCallbacks('afterSave', Array)
#14 /Users/ttasovac/Development/prepis.org/trunk/application/libraries/Omeka/Controller/AbstractActionController.php(144): Omeka_Record_AbstractRecord->save(false)
#15 /Users/ttasovac/Development/prepis.org/trunk/application/controllers/ItemsController.php(149): Omeka_Controller_AbstractActionController->addAction()
#16 /Users/ttasovac/Development/prepis.org/trunk/application/libraries/Zend/Controller/Action.php(516): ItemsController->addAction()
#17 /Users/ttasovac/Development/prepis.org/trunk/application/libraries/Zend/Controller/Dispatcher/Standard.php(308): Zend_Controller_Action->dispatch('addAction')
#18 /Users/ttasovac/Development/prepis.org/trunk/application/libraries/Zend/Controller/Front.php(954): Zend_Controller_Dispatcher_Standard->dispatch(Object(Zend_Controller_Request_Http), Object(Zend_Controller_Response_Http))
#19 /Users/ttasovac/Development/prepis.org/trunk/application/libraries/Zend/Application/Bootstrap/Bootstrap.php(97): Zend_Controller_Front->dispatch()
#20 /Users/ttasovac/Development/prepis.org/trunk/application/libraries/Zend/Application.php(366): Zend_Application_Bootstrap_Bootstrap->run()
#21 /Users/ttasovac/Development/prepis.org/trunk/application/libraries/Omeka/Application.php(79): Zend_Application->run()
#22 /Users/ttasovac/Development/prepis.org/trunk/admin/index.php(28): Omeka_Application->run()
#23 {main}

Any tips would be greatly appreciated.

All best,
Toma

Hi ttasovac,

I was having the same problem when I tried to use Homebrew to install ImageMagic. Macports gave me a whole lot of trouble, too.

I followed jtalbert's instructions, which are posted here: http://omeka.org/forums/topic/imagemagick-install

So, ultimately I manually installed ImageMagick on my OSX 10.8.4, and that did the trick.

Download ImageMagic from here:
https://www.macupdate.com/app/mac/12447/imagemagick

And then follow either jtalbert's instructions, or my own step-by-step, which is posted here:
http://omeka.org/forums/topic/invalid-directory-for-imagemagick

I hope you find this helps. Good luck!

--Cedrick M.

Thanks, Cedrick.

Unfortunately, manually installing doesn't help either.

I am using Omeka 2.1-rc1 because I want to check various API things, but I can't even begin to use it like this. Does any of the developers know if something was changed about how ImageMagick is dealt with in 2.1?

I have tested convert from the command line and it works. But Omeka is just being stubborn and won't recognize it.

All best,
Toma