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 var out: FileOutputStream? = null
try { try {
out = FileOutputStream(file) out = FileOutputStream(file)
bitmap.compress(getCompressionFormat(file), 100, out) bitmap.compress(getCompressionFormat(file), 90, out)
setResult(Activity.RESULT_OK, intent) setResult(Activity.RESULT_OK, intent)
} catch (e: Exception) { } catch (e: Exception) {
Log.e(TAG, "Crop compressing failed $e") Log.e(TAG, "Crop compressing failed $e")