From: tobiasKaminsky Date: Tue, 28 Oct 2014 13:27:03 +0000 (+0100) Subject: - added Comment X-Git-Tag: oc-android-1.7.0_signed~81^2~8 X-Git-Url: http://git.linex4red.de/pub/Android/ownCloud.git/commitdiff_plain/f46dd624f7576faa66d2532b23bdd7221348c87d?ds=sidebyside - added Comment --- 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;