From eba779f8a9b03ce1771fdbb7cff3edca93331761 Mon Sep 17 00:00:00 2001 From: Arthur Date: Sun, 24 Apr 2016 19:54:24 +0300 Subject: [PATCH] remove bitmap rotation due to exif data, now handled by same rotation code as external rotation --- README.md | 1 + .../com/theartofdev/edmodo/cropper/BitmapUtils.java | 11 +---------- 2 files changed, 2 insertions(+), 10 deletions(-) diff --git a/README.md b/README.md index 35f60107..121b4448 100644 --- a/README.md +++ b/README.md @@ -78,6 +78,7 @@ For more information, see the [linked Github Wiki page](https://github.com/Arthu - **Auto-zoom**: zoom-in when crop window takes less than 50% of the image, zoom-out when more than 65%. - Handle cropping of non-straight angles rotations for URI loaded images. - Improve performance for image rotation. +- Improve performance for rotation due to exif orientation data. - Improve performance for orientation change. - Preserve crop window on rotations for straight angles - 90/180/270. - Preserve crop window on orientation change. diff --git a/cropper/src/main/java/com/theartofdev/edmodo/cropper/BitmapUtils.java b/cropper/src/main/java/com/theartofdev/edmodo/cropper/BitmapUtils.java index 844c42ba..7b70ff0c 100644 --- a/cropper/src/main/java/com/theartofdev/edmodo/cropper/BitmapUtils.java +++ b/cropper/src/main/java/com/theartofdev/edmodo/cropper/BitmapUtils.java @@ -57,14 +57,6 @@ final class BitmapUtils { */ static Pair> mStateBitmap; - /** - * Rotate the given bitmap by the given degrees.
- * New bitmap is created and the old one is recycled. - */ - public static RotateBitmapResult rotateBitmap(Bitmap bitmap, int degrees) { - return new RotateBitmapResult(rotateBitmapInt(bitmap, degrees), degrees); - } - /** * Rotate the given image by reading the Exif value of the image (uri).
* If no rotation is required the image will not be rotated.
@@ -104,8 +96,7 @@ public static RotateBitmapResult rotateBitmapByExif(Bitmap bitmap, ExifInterface degrees = 0; break; } - Bitmap rotatedBitmap = rotateBitmapInt(bitmap, degrees); - return new RotateBitmapResult(rotatedBitmap, degrees); + return new RotateBitmapResult(bitmap, degrees); } /**