cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bows...@apache.org
Subject [4/5] android commit: Fixing CB-1700, we had the file names reversed, so exif was never being written right. Needed to upload a file to debug this thing
Date Thu, 28 Mar 2013 17:02:57 GMT
Fixing CB-1700, we had the file names reversed, so exif was never being written right.  Needed
to upload a file to debug this thing


Project: http://git-wip-us.apache.org/repos/asf/cordova-android/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-android/commit/334cf45d
Tree: http://git-wip-us.apache.org/repos/asf/cordova-android/tree/334cf45d
Diff: http://git-wip-us.apache.org/repos/asf/cordova-android/diff/334cf45d

Branch: refs/heads/master
Commit: 334cf45d6d0e6af5e18c2a24884d2e134fc9e64d
Parents: b7bb722
Author: Joe Bowser <bowserj@apache.org>
Authored: Mon Mar 25 16:04:22 2013 -0700
Committer: Joe Bowser <bowserj@apache.org>
Committed: Thu Mar 28 10:02:18 2013 -0700

----------------------------------------------------------------------
 .../src/org/apache/cordova/CameraLauncher.java     |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-android/blob/334cf45d/framework/src/org/apache/cordova/CameraLauncher.java
----------------------------------------------------------------------
diff --git a/framework/src/org/apache/cordova/CameraLauncher.java b/framework/src/org/apache/cordova/CameraLauncher.java
index 03b7712..22a9b94 100755
--- a/framework/src/org/apache/cordova/CameraLauncher.java
+++ b/framework/src/org/apache/cordova/CameraLauncher.java
@@ -446,7 +446,7 @@ public class CameraLauncher extends CordovaPlugin implements MediaScannerConnect
                                     ExifHelper exif = new ExifHelper();
                                     try {
                                         if (this.encodingType == JPEG) {
-                                            exif.createInFile(resizePath);
+                                            exif.createInFile(FileHelper.getRealPath(uri,
this.cordova));
                                             exif.readExifData();
                                             rotate = exif.getOrientation();
                                         }
@@ -460,7 +460,7 @@ public class CameraLauncher extends CordovaPlugin implements MediaScannerConnect
 
                                     // Restore exif data to file
                                     if (this.encodingType == JPEG) {
-                                        exif.createOutFile(FileHelper.getRealPath(uri, this.cordova));
+                                        exif.createOutFile(resizePath);
                                         exif.writeExifData();
                                     }
 


Mime
View raw message