I have made a little Java snippet to load some image files, combine them together into a single image, and write them to file. Now, when I display the BufferedImage that is internal to my application, it looks fine, very nice primary colours. But when I write to file and inspect the resulting jpg, I get a fairly weird set of colours. Does anyone know what the problem might be? Perhaps I need to specify what colour model I am using, to the ImageWriter object? I’m using the ImageIO.write(BufferedImage, String, OutputStream) method.
(Incidentally, has anyone else noticed how easy it is to miss the ‘f’ key and write BuggeredImage instead?)