mirror of
https://github.com/apache/cordova-plugin-camera.git
synced 2025-02-21 12:32:52 +08:00
Add orientation support for PNG to Android (closes #45)
This commit is contained in:
parent
c06ae46485
commit
03fade661e
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user