import mir.media.MediaExc;
import mir.media.MediaFailure;
import mir.util.StreamCopier;
-import mir.util.ExecFunctions;
+import mir.util.ShellRoutines;
import mir.config.MirPropertiesConfiguration;
import java.io.*;
*/
public void readInfo() throws IOException {
checkFile();
- String infoString = ExecFunctions.execIntoString
+ String infoString = ShellRoutines.execIntoString
(getImageMagickPath() +
"identify " + "-format \"%w %h %m %n \" " +
file.getAbsolutePath()); // extra space, for multiframe (animations)
Float.toString(aScalingFactor * 100) + "% " +
result.file.getAbsolutePath();
logger.debug("ImageFile.scale:command:" + command);
- ExecFunctions.simpleExec(command);
+ ShellRoutines.simpleExec(command);
result.readInfo();
return result;
}
scaledImage.file.getAbsolutePath() + frame + " " +
anImageType + ":" + temp.getAbsolutePath();
logger.debug("writeScaledData command:" + command);
- ExecFunctions.simpleExec(command);
+ ShellRoutines.simpleExec(command);
// copy temp file into stream
StreamCopier.copy(new FileInputStream(temp), aStream);
temp.delete();