Search code examples
javaimage-processingpixelbufferedimagelossless-compression

Lossless and Identical way - BufferedImage to File


I have a BufferedImage Object which I have manimulated it pixels (The numeric values). Now how can I save it to a file - preferable JPEG file - without any change in pixels values???


Solution

  • Try and use ImageIO.write( image, "some lessless format", new FileOutputStream(...) );.