String command = null;
try {
command = String.format(imageResizeCommand, imageInfo.file.getAbsolutePath(),outputFile.getAbsolutePath(),maxWidth,maxHeight);
logger.debug(command);
SystemProcess systemProcess = new SystemProcess(command);
systemProcess.start();
BufferedReader bufReader = systemProcess.getErrorReader();
String line = bufReader.readLine();
while( null != line ) {
line = line.trim();