I am creating a Blackberry10 app using the latest cordova frameworks.
I can successfully capture the an image using the framework however the image is not in the correct orientation.
Reading the documentation it seems blackberry do not support the 'correctOrientation' option.
Is the a way to support the correctly taken orientation or should i look at rotating the image myself? if so how would this be best achieved.
Thanks
Dan
navigator.camera.getPicture(function onPhotoDataSuccess(imageData) {
console.log(imageData);
success(imageData);
},function onFail(message) {
alert('Failed because: ' + message);
}
,
{
quality : 100,
destinationType : Camera.DestinationType.DATA_URL,
sourceType : Camera.PictureSourceType.CAMERA,
allowEdit : true,
encodingType: Camera.EncodingType.JPEG,
targetWidth: 100,
targetHeight: 100,
saveToPhotoAlbum: false
});