encoder.encode(_image);
out.close();
} catch (FileNotFoundException e) {
e.printStackTrace();
throw new ImageRuntimeException(srcFile, "生成缩略图");
} // 输出到文件流
catch (ImageFormatException e) {
e.printStackTrace();
throw new ImageRuntimeException(srcFile, "生成缩略图");
} catch (IOException e) {
e.printStackTrace();
throw new ImageRuntimeException(srcFile, "生成缩略图");
}
}