mirror of
https://github.com/apache/cordova-android.git
synced 2025-01-19 07:02:51 +08:00
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:
parent
b7bb72294a
commit
334cf45d6d
@ -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();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user