Compress image without losing the quality

CENT1PEDE picture CENT1PEDE · Feb 21, 2014 · Viewed 17.2k times · Source

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 :

enter image description here

COMPRESSED :

enter image description here

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.

Answer

FD_ picture FD_ · Feb 21, 2014

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