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

  1. ciantic
    Posted 3 years 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.


Topic Closed

This topic has been closed to new replies.

About this Plugin

  • ImageMagick Engine
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic