Problem File_Derivative_Strategy_ExternalImageMagick

Would like to use OMEKA.
But problem with Omeka_File_Derivative_Strategy_ExternalImageMagick

ImageMagick is running well on the server HostPapa

In the sample below for security I replace display of ACCOUNT and DOMAIN

Could someone help ?

Omeka 2.4.1
PHP 5.5.35 (cgi-fcgi)
OS Linux 2.6.18-502.el5.lve0.8.85 x86_64

Sample 1 - Testing the path of Imagemagick

Omeka_File_Derivative_Exception

    Failed to execute command: /usr/bin/convert -version.

exception 'Omeka_File_Derivative_Exception' with message 'Failed to execute command: /usr/bin/convert -version.' in /home/ACCOUNT/public_html/DOMAIN/application/libraries/Omeka/File/Derivative/Strategy/ExternalImageMagick.php:212
Stack trace:
#0 /home/ACCOUNT/public_html/DOMAIN/application/libraries/Omeka/File/Derivative/Strategy/ExternalImageMagick.php(165): Omeka_File_Derivative_Strategy_ExternalImageMagick::executeCommand('/usr/bin/conver...', NULL, NULL, NULL)
#1 /home/ACCOUNT/public_html/DOMAIN/application/controllers/SettingsController.php(204): Omeka_File_Derivative_Strategy_ExternalImageMagick::isValidImageMagickPath('/usr/bin')
#2 /home/ACCOUNT/public_html/DOMAIN/application/libraries/Zend/Controller/Action.php(516): SettingsController->checkImagemagickAction()
#3 /home/ACCOUNT/public_html/DOMAIN/application/libraries/Zend/Controller/Dispatcher/Standard.php(308): Zend_Controller_Action->dispatch('checkImagemagic...')
#4 /home/ACCOUNT/public_html/DOMAIN/application/libraries/Zend/Controller/Front.php(954): Zend_Controller_Dispatcher_Standard->dispatch(Object(Zend_Controller_Request_Http), Object(Zend_Controller_Response_Http))
#5 /home/ACCOUNT/public_html/DOMAIN/application/libraries/Zend/Application/Bootstrap/Bootstrap.php(105): Zend_Controller_Front->dispatch()
#6 /home/ACCOUNT/public_html/DOMAIN/application/libraries/Zend/Application.php(384): Zend_Application_Bootstrap_Bootstrap->run()
#7 /home/ACCOUNT/public_html/DOMAIN/application/libraries/Omeka/Application.php(79): Zend_Application->run()
#8 /home/ACCOUNT/public_html/DOMAIN/admin/index.php(28): Omeka_Application->run()
#9 {main}

Sample 2 - Trying to upload a pdf file

Omeka_File_Derivative_Exception

    Failed to execute command: /usr/bin/convert '/tmp/9b2d5bdda6ed5a6d5449c3f108d0716b.pdf[0]' -background white +repage -flatten -thumbnail '800x800>' '/tmp/fullsize_9b2d5bdda6ed5a6d5449c3f108d0716b.jpg'.

exception 'Omeka_File_Derivative_Exception' with message 'Failed to execute command: /usr/bin/convert '/tmp/9b2d5bdda6ed5a6d5449c3f108d0716b.pdf[0]' -background white +repage -flatten -thumbnail '800x800>' '/tmp/fullsize_9b2d5bdda6ed5a6d5449c3f108d0716b.jpg'.' in /home/ACCOUNT/public_html/DOMAIN/application/libraries/Omeka/File/Derivative/Strategy/ExternalImageMagick.php:212
Stack trace:
#0 /home/ACCOUNT/public_html/DOMAIN/application/libraries/Omeka/File/Derivative/Strategy/ExternalImageMagick.php(49): Omeka_File_Derivative_Strategy_ExternalImageMagick::executeCommand('/usr/bin/conver...', NULL, NULL, NULL)
#1 /home/ACCOUNT/public_html/DOMAIN/application/libraries/Omeka/File/Derivative/Creator.php(76): Omeka_File_Derivative_Strategy_ExternalImageMagick->createImage('/tmp/9b2d5bdda6...', '/tmp/fullsize_9...', 'fullsize', 800, 'application/pdf')
#2 /home/ACCOUNT/public_html/DOMAIN/application/models/File.php(356): Omeka_File_Derivative_Creator->create('/tmp/9b2d5bdda6...', '9b2d5bdda6ed5a6...', 'application/pdf')
#3 /home/ACCOUNT/public_html/DOMAIN/application/models/Job/FileProcessUpload.php(22): File->createDerivatives()
#4 /home/ACCOUNT/public_html/DOMAIN/application/libraries/Omeka/Job/Dispatcher/Adapter/Synchronous.php(25): Job_FileProcessUpload->perform()
#5 /home/ACCOUNT/public_html/DOMAIN/application/libraries/Omeka/Job/Dispatcher/Default.php(136): Omeka_Job_Dispatcher_Adapter_Synchronous->send('{"className":"J...', Array)
#6 /home/ACCOUNT/public_html/DOMAIN/application/models/File.php(203): Omeka_Job_Dispatcher_Default->send('Job_FileProcess...', Array)
#7 [internal function]: File->afterSave(Array)
#8 /home/ACCOUNT/public_html/DOMAIN/application/libraries/Omeka/Record/AbstractRecord.php(277): call_user_func(Array, Array)
#9 /home/ACCOUNT/public_html/DOMAIN/application/libraries/Omeka/Record/AbstractRecord.php(550): Omeka_Record_AbstractRecord->runCallbacks('afterSave', Array)
#10 /home/ACCOUNT/public_html/DOMAIN/application/models/Item.php(335): Omeka_Record_AbstractRecord->save()
#11 /home/ACCOUNT/public_html/DOMAIN/application/models/Builder/Item.php(204): Item->saveFiles()
#12 /home/ACCOUNT/public_html/DOMAIN/application/libraries/globals.php(567): Builder_Item->addFiles('Upload', 'file', Array)
#13 /home/ACCOUNT/public_html/DOMAIN/application/models/Item.php(320): insert_files_for_item(Object(Item), 'Upload', 'file', Array)
#14 /home/ACCOUNT/public_html/DOMAIN/application/models/Item.php(230): Item->_uploadFiles()
#15 [internal function]: Item->beforeSave(Array)
#16 /home/ACCOUNT/public_html/DOMAIN/application/libraries/Omeka/Record/AbstractRecord.php(277): call_user_func(Array, Array)
#17 /home/ACCOUNT/public_html/DOMAIN/application/libraries/Omeka/Record/AbstractRecord.php(531): Omeka_Record_AbstractRecord->runCallbacks('beforeSave', Array)
#18 /home/ACCOUNT/public_html/DOMAIN/application/libraries/Omeka/Controller/AbstractActionController.php(229): Omeka_Record_AbstractRecord->save(false)
#19 /home/ACCOUNT/public_html/DOMAIN/application/controllers/ItemsController.php(91): Omeka_Controller_AbstractActionController->editAction()
#20 /home/ACCOUNT/public_html/DOMAIN/application/libraries/Zend/Controller/Action.php(516): ItemsController->editAction()
#21 /home/ACCOUNT/public_html/DOMAIN/application/libraries/Zend/Controller/Dispatcher/Standard.php(308): Zend_Controller_Action->dispatch('editAction')
#22 /home/ACCOUNT/public_html/DOMAIN/application/libraries/Zend/Controller/Front.php(954): Zend_Controller_Dispatcher_Standard->dispatch(Object(Zend_Controller_Request_Http), Object(Zend_Controller_Response_Http))
#23 /home/ACCOUNT/public_html/DOMAIN/application/libraries/Zend/Application/Bootstrap/Bootstrap.php(105): Zend_Controller_Front->dispatch()
#24 /home/ACCOUNT/public_html/DOMAIN/application/libraries/Zend/Application.php(384): Zend_Application_Bootstrap_Bootstrap->run()
#25 /home/ACCOUNT/public_html/DOMAIN/application/libraries/Omeka/Application.php(79): Zend_Application->run()
#26 /home/ACCOUNT/public_html/DOMAIN/admin/index.php(28): Omeka_Application->run()
#27 {main}

Have you checked the ImageMagick Directory path in Settings on the admin side? If the default path that Omeka tries to guess, you might ask your hosting company what the correct path to ImageMagick should be.

Thank you for your feedback
Running the following scipt :

<?php echo "
";
system('which convert',$path); print_r($path); 
echo "
"; ?>

I got this output:

/usr/bin/convert
0

It seem that the path /usr/bin is OK ?

I solve this problem by changing to :

fileDerivatives.strategy = “Omeka_File_Derivative_Strategy_Imagick”

I presume that the extension ImageMagick is not on our Server, but extension Imagick is there !

Hope this distinction will help other people !

Thank you

Serge Normand