Anne Blankert

Results 17 comments of Anne Blankert

If you want the picture size to match the preview size, you can pass the size of the preview as options to the takePicture method: var previewWidth = ... get...

On Android, I did CameraPreview.takePicture({width: 20, height: 20}, function (result) {}); and got an image of 120 x 160 pixels Reason: - the plugin first checks the preview aspect ratio...

takePicture({width: camwidth, height: camheight}, successhandler, errorhandler); where camwidth and camheight are the same as the width and height used with startCamera. Note that takePicture chooses the nearest supported resolution, wich...

are the width and height of your preview in the list of supported picture sizes?

Tried to replicate your problem. On Android, using git master from remote https://github.com/cordova-plugin-camera-preview/cordova-plugin-camera-preview, called ``` CameraPreview.takePicture({width: 640, height: 480}, _app.takePictureHandler, function(reason) { _app.showMessage(reason); }); ``` Result is image naturalWidth 640px...

@kchenna: what is the css for the image? It is easy to have an image with correct width/height that is layed out incorrectly. Also note that on many devices the...

For Android, some commits ago we removed calls mCamera.stopPreview() and mCamera.startPreview() from takePicture(), because they were causing stability problems for some users. These calls were taken from other source code...

see PR #225 to fix the preview freeze

On Android, the crash mentioned in this issue can be reproduced by taking high resolution portrait pictures. A Galaxy S5 app crashes when trying to rotate a 5312x2988 resolution picture...

added PR #228 for Android error handling if the picture is too large (better than app crash). todo: on devices with high resolution cameras, the maximum resolution pictures are often...