I am using the imgscalr Java library to resize an image .
The result of a resize() method call is a BufferedImage object. I now want to save this as a file (usually
File outputfile = new File("image.jpg"); ImageIO.write(bufferedImage, "jpg", outputfile);