Created
May 13, 2017 13:57
-
-
Save pedrobrasileiro/eb381dec0c47bae1efea6bafb2b00147 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function _getOptionsCamera(sourceType) { | |
var _cameraPopover = new CameraPopoverOptions(300, 300, 100, 100, Camera.PopoverArrowDirection.ARROW_ANY); | |
return { | |
quality: 90, | |
destinationType: Camera.DestinationType.FILE_URI, | |
sourceType: sourceType, | |
mediaType: Camera.MediaType.PICTURE, | |
allowEdit: true, | |
encodingType: ionic.Platform.isAndroid()?Camera.EncodingType.JPEG:Camera.EncodingType.PNG, | |
// targetWidth: 100, | |
// targetHeight: 100, | |
popoverOptions: _cameraPopover, | |
saveToPhotoAlbum: false, | |
correctOrientation : true | |
}; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment