Support » Plugin: ImageMagick Engine » 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.

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