WordPress.org

Support

Support » Plugins and Hacks » PATCH: Cannot detect convert on all server configurations

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/

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