Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pedrobrasileiro/eb381dec0c47bae1efea6bafb2b00147 to your computer and use it in GitHub Desktop.
Save pedrobrasileiro/eb381dec0c47bae1efea6bafb2b00147 to your computer and use it in GitHub Desktop.
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