Imagemagick issue after update


I recently updated to Omeka 2.5.1. After the update ImageMagick stopped working. I checked with my host provider and they confirm that it is enabled on the server. They said that it appears to be script issue. Here is their response:

As of now, we can confirm that the Imagemagic is enabled on the server. We can enable phpinfo page after renaming the .htaccess and could confirm the same. Here we copy the snippet for your reference. But for some reason from the script admin section, it seems not working. You may need to have this issue checked with the site developer or script provider in this regard. If there anything from the server end need to be checked please do let us know.

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

Im not really sure what else to do here. Any advice is appreciated! Thanks!

Was it actually updating to 2.5.1 that was the cause, or are you not sure?

The host’s response is really more appropriate for the “Imagick” PHP extension (as it’s something which could be confirmed by checking phpinfo; the presence and location of the ImageMagick command line tools isn’t).

If they really do have Imagick installed you could always just use that, by adding the following line to your application/config/config.ini file:

fileDerivatives.strategy = "Omeka_File_Derivative_Strategy_Imagick”

The Imagick extension has the benefit of not requiring you to specify the path to ImageMagick, and it doesn’t rely on program-execution functions that some hosts like to disable. We don’t enable it by default because many or most servers don’t have Imagick available, but if yours does it’s a good choice to use it.

added the file as you recommended and it works. Thanks!