Skip to content

Commit

Permalink
remove bitmap rotation due to exif data, now handled by same rotation…
Browse files Browse the repository at this point in the history
… code as external rotation
  • Loading branch information
Arthur committed Apr 24, 2016
1 parent ccb7a6c commit eba779f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 10 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,14 +57,6 @@ final class BitmapUtils {
*/
static Pair<String, WeakReference<Bitmap>> mStateBitmap;

/**
* Rotate the given bitmap by the given degrees.<br>
* 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).<br>
* If no rotation is required the image will not be rotated.<br>
Expand Down Expand Up @@ -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);
}

/**
Expand Down

0 comments on commit eba779f

Please sign in to comment.