op.addImage(pImage);
try {
// execute ...
IdentifyCmd identify = new IdentifyCmd();
ArrayListOutputConsumer output = new ArrayListOutputConsumer();
identify.setOutputConsumer(output);
identify.run(op);
// ... and parse result
ArrayList<String> cmdOutput = output.getOutput();
Iterator<String> iter = cmdOutput.iterator();
iAttributes = new Hashtable<String,String>();
iAttributes.put("Format",iter.next());
iAttributes.put("Width",iter.next());