mirror of
https://github.com/SimpleMobileTools/Simple-Gallery.git
synced 2024-12-25 07:51:26 +01:00
save edited images at 90% quality
This commit is contained in:
parent
cc91a3a287
commit
4bb8650b57
@ -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 New Issue
Block a user