Here is the code I am using to allow the user to capture a photo. The value for width.value is 200, and height.value is 200 as well. Trying to capture a square, however, the captured image is 200 width and 150 height if the camera was in landscape mode, and 150 height and 200 width if the camera was in portrait mode.
Camera.takePicture(width.value, height.value).then(function(file) {
debug_log("photo taken");
debug_log(JSON.stringify(file));
module.exports.image.value = file;
module.exports.imageassigned.value = true;
debug_log("image is assigned should show up now");
});
Is this is a bug or by design? Please let me know if I need to do something different and get this working?