Cordova Camera Plugin Options
Name Type Default Description
quality number 50 Quality of the saved image, expressed as a range of 0-100, where 100 is typically full resolution with no loss from file compression. (Note that information about the camera's resolution is unavailable.)
destinationType DestinationType FILE_URI Choose the format of the return value.
sourceType PictureSourceType CAMERA Set the source of the picture.
allowEdit Boolean false Allow simple editing of image before selection.
encodingType EncodingType JPEG Choose the returned image file's encoding.
targetWidth number - Width in pixels to scale image. Must be used with targetHeight. Aspect ratio remains constant.
targetHeight number - Height in pixels to scale image. Must be used with targetWidth. Aspect ratio remains constant.
mediaType MediaType PICTURE Set the type of media to select from. Only works when PictureSourceType is PHOTOLIBRARY or SAVEDPHOTOALBUM.
correctOrientation Boolean - Rotate the image to correct for the orientation of the device during capture.
saveToPhotoAlbum Boolean - Save the image to the photo album on the device after capture.
popoverOptions CameraPopoverOptions - iOS-only options that specify popover location in iPad.
cameraDirection Direction BACK Choose the camera to use (front- or back-facing).
Name Type Available (default) NOTE Android quirks
quality number 0-100 (50) - -
destinationType DestinationType DATA_URL, NATIVE_URI, (FILE_URI) - -
sourceType PictureSourceType PHOTOLIBRARY, SAVEDPHOTOALBUM (CAMERA) - PHOTOLIBRARY SAVEDPHOTOALBUM both display the same photo album. The CAMERA source will always return the JPEG file given by the native camera
allowEdit Boolean false - `allowEdit` is unpredictable on Android and it should not be used!
encodingType EncodingType PNG (JPEG) - Ignores the `encodingType` parameter if the image is unedited
targetWidth number - - -
targetHeight number - - -
mediaType MediaType VIDEO, ALLMEDIA (PICTURE) -
correctOrientation Boolean - Rotate the image to correct for the orientation of the device during capture. -
saveToPhotoAlbum Boolean - Save the image to the photo album on the device after capture. -
popoverOptions CameraPopoverOptions - - -
cameraDirection Direction FRONT (BACK) - Any cameraDirection value results in a back-facing photo.

Andrdoid Quirks

  • `pendingResult.result`
Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License