title: problem in imagemagick and grails
body: <p>i have a new problem in image magick that look strange .. 
  i'm using mac osx snow leopard and i've installed image magick on it and it's working fine on command .. 
  but when i call it from the grails class like the following snippet it gives me 
  "Cannot run program "convert": error=2, No such file or directory"</p>
  
  <p>the code is :-</p>
  
  <pre><code> public static boolean resizeImage(String srcPath, String destPath,String size) {
  
      ArrayList&lt;String&gt; command = new ArrayList&lt;String&gt;(10);
  
  
      command.add("convert");
      command.add("-geometry");
      command.add(size);
      command.add("-quality");
      command.add("100" );
      command.add(srcPath);
      command.add(destPath);
  
      System.out.println(command);
  
      return exec((String[])command.toArray(new String[1]));
  }
  
  private static boolean exec(String[] command) {
      Process proc;
  
      try {
          //System.out.println("Trying to execute command " + Arrays.asList(command));
          proc = Runtime.getRuntime().exec(command);
      } catch (IOException e) {
          System.out.println("IOException while trying to execute " );
          for(int i =0 ; i&lt;command.length; i++) {
          System.out.println(command[i]);
          }
          return false;
      }
  
      //System.out.println("Got process object, waiting to return.");
  
      int exitStatus;
  
      while (true) {
          try {
              exitStatus = proc.waitFor();
              break;
          } catch (java.lang.InterruptedException e) {
              System.out.println("Interrupted: Ignoring and waiting");
          }
      }
      if (exitStatus != 0) {
          System.out.println("Error executing command: " + exitStatus);
      }
      return (exitStatus == 0);
  }
  </code></pre>
  
  <p>i've tried normal command like ls and it's ok so the problem is that grails can't find convert command itself.. is it a os problem or something?</p>