diff --git a/README.md b/README.md index 281b12240..c5e21ec33 100644 --- a/README.md +++ b/README.md @@ -307,7 +307,7 @@ Optional parameters to customize the camera settings. | 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](#module_Camera.DestinationType) | FILE_URI | Choose the format of the return value. | | sourceType | [PictureSourceType](#module_Camera.PictureSourceType) | CAMERA | Set the source of the picture. | -| allowEdit | Boolean | false | Allow simple editing of image before selection. | +| ~~allowEdit~~ | Boolean | false | **Deprecated**. Allow simple editing of image before selection. | | encodingType | [EncodingType](#module_Camera.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. | diff --git a/www/Camera.js b/www/Camera.js index 5c0627a33..1e6b5ca66 100644 --- a/www/Camera.js +++ b/www/Camera.js @@ -143,6 +143,10 @@ cameraExport.getPicture = function (successCallback, errorCallback, options) { const popoverOptions = getValue(options.popoverOptions, null); const cameraDirection = getValue(options.cameraDirection, Camera.Direction.BACK); + if (allowEdit) { + console.warn('allowEdit is deprecated. It does not work reliably on all platforms. Utilise a dedicated image editing library instead. allowEdit functionality is scheduled to be removed in a future release.'); + } + const args = [quality, destinationType, sourceType, targetWidth, targetHeight, encodingType, mediaType, allowEdit, correctOrientation, saveToPhotoAlbum, popoverOptions, cameraDirection];