code: public static void write(Image image, File targetFile) throws IORuntimeException {
  		ImageOutputStream out = null;
  		try {
  			out = getImageOutputStream(targetFile);
  			write(image, FileUtil.extName(targetFile), out);
  		} finally {
  			IoUtil.close(out);
  		}
  	}
docs: 写出图像为目标文件扩展名对应的格式
  
  @param image {@link Image}
  @param targetFile 目标文件
  @throws IORuntimeException IO异常
  @since 3.1.0