I have used this code to get Image into array of pixels.
- convertTo2DWithoutUsingGetRGB method for reading image to pixel array
- writeToFile method for pixel array to image
Now I would like to convert the array of pixels to Image. But when I convert it, I am losing image data.
- Initial Image size: 80Kb JPG
- Duplicate Image size: 71Kb JPG
I can clearly notice some difference between the both images, the Java produced image has some sort of white-noise.
I would like to reproduce the image without single pixel loss of data, how do I achieve in Java?