- added Comment
authortobiasKaminsky <tobias@kaminsky.me>
Tue, 28 Oct 2014 13:27:03 +0000 (14:27 +0100)
committertobiasKaminsky <tobias@kaminsky.me>
Tue, 28 Oct 2014 13:27:03 +0000 (14:27 +0100)
src/com/owncloud/android/ui/preview/PreviewImageFragment.java

index 46084d1..70ab80d 100644 (file)
@@ -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;