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

This commit is contained in:
Joe Bowser 2013-03-25 16:04:22 -07:00
parent b7bb72294a
commit 334cf45d6d

View File

@ -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();
}