EN
Java - save BufferedImage to JPG file
6
points
In this article, we want to show how to save BufferedImage to PNG file using Java.
Quick solution:
// import java.io.File;
// import javax.imageio.ImageIO;
// import java.awt.image.BufferedImage;
BufferedImage image = ...
ImageIO.write(image, "JPG", new File("/path/to/output.jpg"));
JPEG file quality
To save JPEG file with quality read this article.