Repository: cordova-plugin-camera
Updated Branches:
  refs/heads/master c06ae4648 -> 03fade661


Add orientation support for PNG to Android (closes #45)


Project: http://git-wip-us.apache.org/repos/asf/cordova-plugin-camera/repo
Commit: 
http://git-wip-us.apache.org/repos/asf/cordova-plugin-camera/commit/03fade66
Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugin-camera/tree/03fade66
Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugin-camera/diff/03fade66

Branch: refs/heads/master
Commit: 03fade661e4048706651177770aaa272168957ed
Parents: c06ae46
Author: yoshifp <[email protected]>
Authored: Thu Aug 28 15:15:37 2014 +1000
Committer: Andrew Grieve <[email protected]>
Committed: Tue Oct 7 15:44:27 2014 -0400

----------------------------------------------------------------------
 src/android/CameraLauncher.java | 4 ++++
 1 file changed, 4 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-plugin-camera/blob/03fade66/src/android/CameraLauncher.java
----------------------------------------------------------------------
diff --git a/src/android/CameraLauncher.java b/src/android/CameraLauncher.java
index 7196fcf..cd15e06 100644
--- a/src/android/CameraLauncher.java
+++ b/src/android/CameraLauncher.java
@@ -345,6 +345,10 @@ public class CameraLauncher extends CordovaPlugin 
implements MediaScannerConnect
                 exif.createInFile(getTempDirectoryPath() + "/.Pic.jpg");
                 exif.readExifData();
                 rotate = exif.getOrientation();
+            } else if (this.encodingType == PNG) {
+                exif.createInFile(getTempDirectoryPath() + "/.Pic.png");
+                exif.readExifData();
+                rotate = exif.getOrientation();
             }
         } catch (IOException e) {
             e.printStackTrace();


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to