save edited images at 90% quality

This commit is contained in:
tibbi 2016-10-08 23:05:41 +02:00
parent cc91a3a287
commit 4bb8650b57

View file

@ -96,7 +96,7 @@ class EditActivity : SimpleActivity(), CropImageView.OnCropImageCompleteListener
var out: FileOutputStream? = null
try {
out = FileOutputStream(file)
bitmap.compress(getCompressionFormat(file), 100, out)
bitmap.compress(getCompressionFormat(file), 90, out)
setResult(Activity.RESULT_OK, intent)
} catch (e: Exception) {
Log.e(TAG, "Crop compressing failed $e")