I tried to save an image from a JavaFX application. As this is not directly supported I had to convert the image to a BufferedImage and then save the image via ImageIO. After doing this I realized that when I tried to write the image in JPEG format, the colors are wrong. If I try to save the image in TIFF format, the colors are ok. In order to be able to write the TIFF format I had to install Java Advanced Imaging (JAI) and JAI image IO, which may make a difference. There are other JIRA entries complaining about wrong colors in JPEG files (RT-14647 for example) but they are mostly about importing files from specific cameras. But maybe this entry is somehow related to these other issues because the visual results look very similar.
See attachements for further details.
See attachements for further details.
- duplicates
-
JDK-8114609 Incorrect display of JPEG images
-
- Resolved
-