Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Topics - dannyb

Pages: [1]
1
Feedback & Suggestions / Modification for use with windows and image magick
« on: February 17, 2003, 02:25:12 PM »
Quote from: alex26
I have been reading and reading and reading some more.  So far many people seem to have the same problems...   I have a problem getting IMAGEMAGICK to work also. I don't get a error just a blank page that sits there.  I have tried everything the forum said.

Is there something else I should be installing to make this work??
Is there a list of things to install?


I had the same problem on the same configuration. After some research I found out that php for win32 doesn't  support the function "is_executable"

see http://www.php.net/manual/en/function.is-executable.php

It is used in includes/image_utils.php :

Code: [Select]

  switch($config['convert_tool']) {
  case "im":
    $convert_options['convert_path'] = check_executable($convert_options['convert_path']);
    $convert_options['convert_path'] = preg_replace("/".check_executable("mogrify")."$/i", check_executable("convert"), $convert_options['convert_path']);
    if (!@is_executable($convert_options['convert_path'])) {
      $convert_options['convert_error'] = "<b class=\"marktext\">".$lang['im_error']."</b><br />\n".$lang['check_module_settings'];
    }
    break;


there is a @ in front of it so it will not show an error about function not found...  when you comment out these 3 lines it will work!

Code: [Select]

//   if (!@is_executable($convert_options['convert_path'])) {
//      $convert_options['convert_error'] = "<b class=\"marktext\">".$lang['im_error']."</b><br />\n".$lang['check_module_settings'];
//    }

Pages: [1]