While using the code (java) :
try {
ImageIO.write(image, "jpg",new File("outMYFILE.jpg"));
} catch (IOException g) {
g.printStackTrace();
}
The image that is save changes its colors and for example instead of black image there is a blue one. How can I fix this? Thanks.