Title: PATCH: Cannot detect convert on all server configurations
Last modified: August 20, 2016

---

# PATCH: Cannot detect convert on all server configurations

 *  [ciantic](https://wordpress.org/support/users/ciantic/)
 * (@ciantic)
 * [13 years, 7 months ago](https://wordpress.org/support/topic/patch-cannot-detect-convert-on-all-server-configurations/)
 * If your host configuration does not allow listing files from e.g. /usr/bin/ the`
   is_executable` (as well as `file_exists`) returns always false, even though the
   exec command works just fine.
 * There is a easy patch for it, modify `imagemagic-engine.php` and function `ime_im_cli_check_executable`
   inside to following:
 *     ```
       // Test if we are allowed to exec executable!
       function ime_im_cli_check_executable($fullpath) {
       	@exec('"' . $fullpath . '" --version', $output);
   
       	return isset($output[0]) && substr($output[0], 0, strlen("Version: ImageMagick")) == "Version: ImageMagick";
       }
       ```
   
 * This detects if exec works, and is thus more versatile.
 * [http://wordpress.org/extend/plugins/imagemagick-engine/](http://wordpress.org/extend/plugins/imagemagick-engine/)

The topic ‘PATCH: Cannot detect convert on all server configurations’ is closed 
to new replies.

 * ![](https://ps.w.org/imagemagick-engine/assets/icon-256x256.jpg?rev=2244640)
 * [ImageMagick Engine](https://wordpress.org/plugins/imagemagick-engine/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/imagemagick-engine/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/imagemagick-engine/)
 * [Active Topics](https://wordpress.org/support/plugin/imagemagick-engine/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/imagemagick-engine/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/imagemagick-engine/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [ciantic](https://wordpress.org/support/users/ciantic/)
 * Last activity: [13 years, 7 months ago](https://wordpress.org/support/topic/patch-cannot-detect-convert-on-all-server-configurations/)
 * Status: not resolved