|
|
@@ -79,7 +79,7 @@ public class OperationPresenter extends BasePresenter<IOperationView> {
|
|
|
int max = rotatedBitmap.getWidth() > rotatedBitmap.getHeight() ? rotatedBitmap.getWidth() : rotatedBitmap.getHeight();
|
|
|
float multi = 1.0f;
|
|
|
if (max > 2000) {
|
|
|
- multi = 1.0f * max / 2000 + 0.5f;
|
|
|
+ multi = 1.0f * max / 2000 + 0.4f;
|
|
|
}
|
|
|
|
|
|
if (multi > 1) {
|
|
|
@@ -407,7 +407,9 @@ public class OperationPresenter extends BasePresenter<IOperationView> {
|
|
|
int max = rotatedBitmap.getWidth() > rotatedBitmap.getHeight() ? rotatedBitmap.getWidth() : rotatedBitmap.getHeight();
|
|
|
float multi = 1.0f;
|
|
|
if (max > 2000) {
|
|
|
- multi = 1.0f * max / 2000 + 0.5f;
|
|
|
+ multi = 1.0f * max / 2000 + 0.4f;
|
|
|
+ } else if (multi > 1800) {
|
|
|
+ multi = 1.1f;
|
|
|
}
|
|
|
|
|
|
// 压缩图片
|
|
|
@@ -419,7 +421,7 @@ public class OperationPresenter extends BasePresenter<IOperationView> {
|
|
|
rotatedBitmap.recycle();
|
|
|
if (saveCropSuccess) {
|
|
|
File compressedFile = new Compressor(context.getApplicationContext())
|
|
|
- .setQuality(99)
|
|
|
+ .setQuality(98)
|
|
|
.setDestinationDirectoryPath(file.getParentFile().getAbsolutePath())
|
|
|
.compressToFile(file, "cp_" + file.getName());
|
|
|
|