9
0
mirror of https://gitee.com/shuto/cordova-plugin-camera.git synced 2025-04-24 13:30:23 +08:00

Add orientation support for PNG to Android (closes )

This commit is contained in:
yoshifp 2014-08-28 15:15:37 +10:00 committed by Andrew Grieve
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();