WordPress.org

Ready to get started?Download WordPress

Forums

ImageMagick Engine
PATCH: Cannot detect convert on all server configurations (1 post)

  1. ciantic
    Member
    Posted 1 year ago #

    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/

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags