save edited images at 90% quality
This commit is contained in:
parent
cc91a3a287
commit
4bb8650b57
1 changed files with 1 additions and 1 deletions
|
@ -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")
|
||||||
|
|
Loading…
Reference in a new issue