Image compression without loss of quality

I am developing an Android application that takes pictures and saves it. And I want to make the download speed faster by compressing the image. But since I compressed them using BitmapCompress, the image seems to be lost in quality. Here:

RAW :

enter image description here

COMPRESSED :

enter image description here

BEFORE : SIZE - 1920X1920 FILE SIZE - 2.94 MB

AFTER : SIZE - 960X960 FILE SIZE - 644 KB

I wonder if there is a way, maybe the library can solve my problem? Instagram seems to do this compression material without losing image quality.

+3
source share
4 answers

.

:

  • PNG, .
+2

@Saret BitmapCompress . ~ 800-900KB ~ 3MB , 80% . , .

, , :

0

, :

  • " EXIF" .

:

EXIF ​​

, EXIF, . EXIF ​​ , .

Google , EXIF. Windows Mac:

http://www.exifpurge.com/

, Android, . , , "EXIF- " - ,

- . -. , "grunt".

A quick Google search revealed the following site, which works right from your browser.

https://compressor.io/compress

0
source
Bitmap yourbitmap

[...]

OutputStream os = new FileOutputStream(filename); 
yourbitmap.compress(CompressFormat.JPEG, 80, os);  // 80% compression

This will keep your image and good quality.

-1
source

All Articles