From 334cf45d6d0e6af5e18c2a24884d2e134fc9e64d Mon Sep 17 00:00:00 2001 From: Joe Bowser Date: Mon, 25 Mar 2013 16:04:22 -0700 Subject: [PATCH] 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 --- framework/src/org/apache/cordova/CameraLauncher.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/framework/src/org/apache/cordova/CameraLauncher.java b/framework/src/org/apache/cordova/CameraLauncher.java index 03b7712c..22a9b948 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(); }