}
FileImageOutputStream thumbOut =
new FileImageOutputStream(thumbFile);
thumbWriter.setOutput(thumbOut);
thumbWriter.write(null, new IIOImage(thumb, null, null), iwp);
thumbWriter.dispose();
thumbOut.close();
} catch (IOException ex) {
return false;
}