|
|
@@ -71,7 +71,7 @@ public class OperationPresenter extends BasePresenter<IOperationView> {
|
|
|
int max = rotatedBitmap.getWidth() > rotatedBitmap.getHeight() ? rotatedBitmap.getWidth() : rotatedBitmap.getHeight();
|
|
|
int multi = 1;
|
|
|
if (max > 1000) {
|
|
|
- multi = max / 1000 + 1;
|
|
|
+ multi = max / 1000;
|
|
|
}
|
|
|
|
|
|
File file = new File(Environment.getExternalStoragePublicDirectory(DIRECTORY_PICTURES) + "/" + System.currentTimeMillis() + ".jpg");
|
|
|
@@ -85,7 +85,7 @@ public class OperationPresenter extends BasePresenter<IOperationView> {
|
|
|
rotatedBitmap.recycle();
|
|
|
if (saveCropSuccess) {
|
|
|
File compressedFile = new Compressor(context.getApplicationContext())
|
|
|
- .setQuality(90)
|
|
|
+ .setQuality(98)
|
|
|
.setDestinationDirectoryPath(file.getParentFile().getAbsolutePath())
|
|
|
.compressToFile(file, "cp_" + file.getName());
|
|
|
|