X-Git-Url: http://git.linex4red.de/pub/Android/ownCloud.git/blobdiff_plain/c779c7c6ed7a5c480f785d4070fcc2fdde18765e..f46dd624f7576faa66d2532b23bdd7221348c87d:/src/com/owncloud/android/ui/preview/PreviewImageFragment.java diff --git a/src/com/owncloud/android/ui/preview/PreviewImageFragment.java b/src/com/owncloud/android/ui/preview/PreviewImageFragment.java index 46084d1a..70ab80d9 100644 --- a/src/com/owncloud/android/ui/preview/PreviewImageFragment.java +++ b/src/com/owncloud/android/ui/preview/PreviewImageFragment.java @@ -421,6 +421,13 @@ public class PreviewImageFragment extends FileFragment { return result; } + /** + * Rotate bitmap according to EXIF orientation. + * Cf. http://www.daveperrett.com/articles/2012/07/28/exif-orientation-handling-is-a-ghetto/ + * @param bitmap Bitmap to be rotated + * @param storagePath Path to source file of bitmap. Needed for EXIF information. + * @return correctly EXIF-rotated bitmap + */ private Bitmap rotateImage(Bitmap bitmap, String storagePath){ Bitmap resultBitmap = bitmap;