static BufferedImage scaleBufferedImageToHeight(int height, BufferedImage img) { ret scaleImage(img, height/(double) img.getHeight()); }