code: public static int resizeImage(BufferedImage inputImage, String dest, int width, int height, float quality)
  			throws IOException {
  		BufferedImage outputImage = Scalr.resize(inputImage, Scalr.Method.QUALITY, Scalr.Mode.AUTOMATIC, width, height,
  				Scalr.OP_ANTIALIAS);
  		return writeImage(dest, outputImage, 0.9f);
  	}
docs: 将源图片缩放为指定的尺寸大小
  
  @param src
  @param dest
  @param width
  @param height
  @throws IOException