I am working on an android app, which involves loading an jpeg
image form the internal storage and the saving it back to the internal storage.
I load the bitmap of the image and save the image using the bitmap.
imageBitmap.compress(Bitmap.CompressFormat.JPEG, 100, fileOutputStream)
But in saving the image, it gets compressed (even if I did not change anything in the image).
How can I load and save the same jpeg image without changing anything on the pixel level?
I'm looking for a way to write pixel by pixel (probably this is the only solution). I found a similiar way - link but this not only does not maintain the filetype as jpeg
but also increases the file size 6 times. Although it maintains the exact pixel data.