Compress image without losing the quality

android, camera, image-compression, image-processing

Solution

Compressing will always lead to decreased quality in the one or the other way.

Here is what you could do:

- Change your compression format to PNG, if you are not already using that.

- Find a perfect compromise for the quality value between size and quality

Problem

I've been developing an Android app which takes picture and save it. And I want make the upload speed more faster by compressing the image. But as I compressed them using `BitmapCompress`, the image seems lost its quality. Here : RAW : COMPRESSED : BEFORE : DIMENSION - 1920X1920 FILE SIZE - 2.94MB AFTER : DIMENSION - 960X960 FILE SIZE - 644KB I wonder if there's a way, a library perhaps that will solve my problem? Instagram seems to be doing this compression stuff without losing the image quality.

Original source