Add orientation support for PNG to Android (closes #45)

This commit is contained in:
yoshifp 2014-08-28 15:15:37 +10:00 committed by Andrew Grieve
parent c06ae46485
commit 03fade661e

View File

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