Failed to execute command: /usr/bin/convert

In attempting to add a file to a new item, or after deleting a file and trying to replace it with a new file in an already existing item,
I've received the following error: /usr/bin/convert. Any help?

Omeka_File_Derivative_Exception
Failed to execute command: /usr/bin/convert '/tmp/a68e4e69f82edc2538a36232d371e349.tif[0]' -background white -flatten -thumbnail '800x800>' '/tmp/fullsize_a68e4e69f82edc2538a36232d371e349.jpg'.

#0 /home/institu1/public_html/lk2014/application/libraries/Omeka/File/Derivative/Strategy/ExternalImageMagick.php(49): Omeka_File_Derivative_Strategy_ExternalImageMagick::executeCommand('/usr/bin/conver...', NULL, NULL, NULL)
#1 /home/institu1/public_html/lk2014/application/libraries/Omeka/File/Derivative/Creator.php(76): Omeka_File_Derivative_Strategy_ExternalImageMagick->createImage('/tmp/a68e4e69f8...', '/tmp/fullsize_a...', 'fullsize', 800, 'image/tiff')
#2 /home/institu1/public_html/lk2014/application/models/File.php(362): Omeka_File_Derivative_Creator->create('/tmp/a68e4e69f8...', 'a68e4e69f82edc2...', 'image/tiff')
#3 /home/institu1/public_html/lk2014/application/models/Job/FileProcessUpload.php(22): File->createDerivatives()
#4 /home/institu1/public_html/lk2014/application/libraries/Omeka/Job/Dispatcher/Adapter/Synchronous.php(25): Job_FileProcessUpload->perform()
#5 /home/institu1/public_html/lk2014/application/libraries/Omeka/Job/Dispatcher/Default.php(136): Omeka_Job_Dispatcher_Adapter_Synchronous->send('{"className":"J...', Array)
#6 /home/institu1/public_html/lk2014/application/models/File.php(209): Omeka_Job_Dispatcher_Default->send('Job_FileProcess...', Array)
#7 [internal function]: File->afterSave(Array)
#8 /home/institu1/public_html/lk2014/application/libraries/Omeka/Record/AbstractRecord.php(277): call_user_func(Array, Array)
#9 /home/institu1/public_html/lk2014/application/libraries/Omeka/Record/AbstractRecord.php(550): Omeka_Record_AbstractRecord->runCallbacks('afterSave', Array)
#10 /home/institu1/public_html/lk2014/application/models/Item.php(335): Omeka_Record_AbstractRecord->save()
#11 /home/institu1/public_html/lk2014/application/models/Builder/Item.php(204): Item->saveFiles()
#12 /home/institu1/public_html/lk2014/application/libraries/globals.php(573): Builder_Item->addFiles('Upload', 'file', Array)
#13 /home/institu1/public_html/lk2014/application/models/Item.php(320): insert_files_for_item(Object(Item), 'Upload', 'file', Array)
#14 /home/institu1/public_html/lk2014/application/models/Item.php(230): Item->_uploadFiles()
#15 [internal function]: Item->beforeSave(Array)
#16 /home/institu1/public_html/lk2014/application/libraries/Omeka/Record/AbstractRecord.php(277): call_user_func(Array, Array)
#17 /home/institu1/public_html/lk2014/application/libraries/Omeka/Record/AbstractRecord.php(531): Omeka_Record_AbstractRecord->runCallbacks('beforeSave', Array)
#18 /home/institu1/public_html/lk2014/application/libraries/Omeka/Controller/AbstractActionController.php(209): Omeka_Record_AbstractRecord->save(false)
#19 /home/institu1/public_html/lk2014/application/controllers/ItemsController.php(89): Omeka_Controller_AbstractActionController->editAction()
#20 /home/institu1/public_html/lk2014/application/libraries/Zend/Controller/Action.php(516): ItemsController->editAction()
#21 /home/institu1/public_html/lk2014/application/libraries/Zend/Controller/Dispatcher/Standard.php(308): Zend_Controller_Action->dispatch('editAction')
#22 /home/institu1/public_html/lk2014/application/libraries/Zend/Controller/Front.php(954): Zend_Controller_Dispatcher_Standard->dispatch(Object(Zend_Controller_Request_Http), Object(Zend_Controller_Response_Http))
#23 /home/institu1/public_html/lk2014/application/libraries/Zend/Application/Bootstrap/Bootstrap.php(101): Zend_Controller_Front->dispatch()
#24 /home/institu1/public_html/lk2014/application/libraries/Zend/Application.php(366): Zend_Application_Bootstrap_Bootstrap->run()
#25 /home/institu1/public_html/lk2014/application/libraries/Omeka/Application.php(79): Zend_Application->run()
#26 /home/institu1/public_html/lk2014/admin/index.php(28): Omeka_Application->run()
#27 {main}

Have you set your ImageMagick path correctly? Check Settings->General and click Test button. What is the response?

Hi, it comes back with an error saying path does not work.

The problem occurred after i upgraded to 2.2.2. Tried different paths, but none seem to work.

What version were you on before?

There haven't been any particularly notable changes in how Omeka runs that command since version 2.0.

I believe it was 2.2.1, but Im not sure. It is really weird...we didn't muck with anything and our server service hasn't changed anything.

Again, I have tried

/usr/local/bin

and

/usr/bin

for the directory path for Image Magick. neither path seems to work.

Hate to dump this in here...but here is the error message as it is right now. Hopefully you might be able to make heads or tails out of it!

0 /home/institu1/public_html/lk2014/application/libraries/Omeka/File/Derivative/Strategy/ExternalImageMagick.php(39): Omeka_File_Derivative_Strategy_ExternalImageMagick->_getConvertPath()
#1 /home/institu1/public_html/lk2014/application/libraries/Omeka/File/Derivative/Creator.php(76): Omeka_File_Derivative_Strategy_ExternalImageMagick->createImage('/tmp/074d469110...', '/tmp/fullsize_0...', 'fullsize', 800, 'image/jpeg')
#2 /home/institu1/public_html/lk2014/application/models/File.php(362): Omeka_File_Derivative_Creator->create('/tmp/074d469110...', '074d46911053627...', 'image/jpeg')
#3 /home/institu1/public_html/lk2014/application/models/Job/FileProcessUpload.php(22): File->createDerivatives()
#4 /home/institu1/public_html/lk2014/application/libraries/Omeka/Job/Dispatcher/Adapter/Synchronous.php(25): Job_FileProcessUpload->perform()
#5 /home/institu1/public_html/lk2014/application/libraries/Omeka/Job/Dispatcher/Default.php(136): Omeka_Job_Dispatcher_Adapter_Synchronous->send('{"className":"J...', Array)
#6 /home/institu1/public_html/lk2014/application/models/File.php(209): Omeka_Job_Dispatcher_Default->send('Job_FileProcess...', Array)
#7 [internal function]: File->afterSave(Array)
#8 /home/institu1/public_html/lk2014/application/libraries/Omeka/Record/AbstractRecord.php(277): call_user_func(Array, Array)
#9 /home/institu1/public_html/lk2014/application/libraries/Omeka/Record/AbstractRecord.php(550): Omeka_Record_AbstractRecord->runCallbacks('afterSave', Array)
#10 /home/institu1/public_html/lk2014/application/models/Item.php(335): Omeka_Record_AbstractRecord->save()
#11 /home/institu1/public_html/lk2014/application/models/Builder/Item.php(204): Item->saveFiles()
#12 /home/institu1/public_html/lk2014/application/libraries/globals.php(573): Builder_Item->addFiles('Upload', 'file', Array)
#13 /home/institu1/public_html/lk2014/application/models/Item.php(320): insert_files_for_item(Object(Item), 'Upload', 'file', Array)
#14 /home/institu1/public_html/lk2014/application/models/Item.php(230): Item->_uploadFiles()
#15 [internal function]: Item->beforeSave(Array)
#16 /home/institu1/public_html/lk2014/application/libraries/Omeka/Record/AbstractRecord.php(277): call_user_func(Array, Array)
#17 /home/institu1/public_html/lk2014/application/libraries/Omeka/Record/AbstractRecord.php(531): Omeka_Record_AbstractRecord->runCallbacks('beforeSave', Array)
#18 /home/institu1/public_html/lk2014/application/libraries/Omeka/Controller/AbstractActionController.php(209): Omeka_Record_AbstractRecord->save(false)
#19 /home/institu1/public_html/lk2014/application/controllers/ItemsController.php(89): Omeka_Controller_AbstractActionController->editAction()
#20 /home/institu1/public_html/lk2014/application/libraries/Zend/Controller/Action.php(516): ItemsController->editAction()
#21 /home/institu1/public_html/lk2014/application/libraries/Zend/Controller/Dispatcher/Standard.php(308): Zend_Controller_Action->dispatch('editAction')
#22 /home/institu1/public_html/lk2014/application/libraries/Zend/Controller/Front.php(954): Zend_Controller_Dispatcher_Standard->dispatch(Object(Zend_Controller_Request_Http), Object(Zend_Controller_Response_Http))
#23 /home/institu1/public_html/lk2014/application/libraries/Zend/Application/Bootstrap/Bootstrap.php(101): Zend_Controller_Front->dispatch()
#24 /home/institu1/public_html/lk2014/application/libraries/Zend/Application.php(366): Zend_Application_Bootstrap_Bootstrap->run()
#25 /home/institu1/public_html/lk2014/application/libraries/Omeka/Application.php(79): Zend_Application->run()
#26 /home/institu1/public_html/lk2014/admin/index.php(28): Omeka_Application->run()
#27 {main}

Have you double-checked with the server admins what the correct path should be?

Im waiting for a reply from them. Im starting to think thats this issue, as I have several installations, even one that has not been upgraded, that have the same error.

In the event that Image Magick is not being used or some such thing, is there a link to a process whereby an alternate image management system could be used? I seem to recall there being some discussion of this.

If the IMagick PHP module is installed on the server, you can use that instead by uncommenting this line at the end of application/config.ini

; fileDerivatives.strategy = "Omeka_File_Derivative_Strategy_Imagick"

Tried that and it still gives the error. I think there is something wrong on the server end...still waiting for reply from server management...!

For clarification, though, that is the only line that is uncommented, correct?

whoa whoa...I just noticed...the file reads:

fileDerivatives.strategy = "Omeka_File_Derivative_Strategy_ExternalImageMagick"

Don't know what the "ExternalImage" is in there...should I delete that?

@tjfinan have you solved this?

@patrickmj any way to solve this? I have the exact same problema and i am unable to use omeka. Why the image handle is not out of the box like wordpress?

2014-10-16T23:43:15-03:00 ERR (3): exception 'Omeka_File_Derivative_Exception' with message 'Failed to execute command: /usr/bin/convert -version.' in /home/lowenttu/public_html/museum/application/libraries/Omeka/File/Derivative/Strategy/ExternalImageMagick.php:201
Stack trace:
#0 /home/lowenttu/public_html/museum/application/libraries/Omeka/File/Derivative/Strategy/ExternalImageMagick.php(154): Omeka_File_Derivative_Strategy_ExternalImageMagick::executeCommand('/usr/bin/conver...', NULL, NULL, NULL)
#1 /home/lowenttu/public_html/museum/application/controllers/SettingsController.php(196): Omeka_File_Derivative_Strategy_ExternalImageMagick::isValidImageMagickPath('/usr/bin/')
#2 /home/lowenttu/public_html/museum/application/libraries/Zend/Controller/Action.php(516): SettingsController->checkImagemagickAction()
#3 /home/lowenttu/public_html/museum/application/libraries/Zend/Controller/Dispatcher/Standard.php(308): Zend_Controller_Action->dispatch('checkImagemagic...')
#4 /home/lowenttu/public_html/museum/application/libraries/Zend/Controller/Front.php(954): Zend_Controller_Dispatcher_Standard->dispatch(Object(Zend_Controller_Request_Http), Object(Zend_Controller_Response_Http))
#5 /home/lowenttu/public_html/museum/application/libraries/Zend/Application/Bootstrap/Bootstrap.php(101): Zend_Controller_Front->dispatch()
#6 /home/lowenttu/public_html/museum/application/libraries/Zend/Application.php(366): Zend_Application_Bootstrap_Bootstrap->run()
#7 /home/lowenttu/public_html/museum/application/libraries/Omeka/Application.php(79): Zend_Application->run()
#8 /home/lowenttu/public_html/museum/admin/index.php(28): Omeka_Application->run()
#9 {main}