fixed a problem with newer imagemagick versions - reversed parameter for the identify...
authorskep <skep>
Mon, 19 Dec 2005 12:34:36 +0000 (12:34 +0000)
committerskep <skep>
Mon, 19 Dec 2005 12:34:36 +0000 (12:34 +0000)
source/mir/media/image/ImageMagickImageProcessor.java

index 9db2f47..ac851ad 100755 (executable)
@@ -150,9 +150,8 @@ public class ImageMagickImageProcessor implements ImageProcessor {
       checkFile();
       String infoString = ExecFunctions.execIntoString
           (getImageMagickPath() +
-              "identify " +
-              file.getAbsolutePath() + " " +
-              "-format \"%w %h %m %n \"");// extra space, for multiframe (animations)
+              "identify " + "-format \"%w %h %m %n \" " + 
+              file.getAbsolutePath()); // extra space, for multiframe (animations)              
       StringTokenizer st = new StringTokenizer(infoString);
       width = Integer.parseInt(st.nextToken());
       height = Integer.parseInt(st.nextToken());