I can find information in my Accelerometer docs to return device orientation. Is there anyway telephone service can return the way the device was held during shooting? To use the camera, I do the following:
function capturePhoto() {
When he returns successfully, he does this.
function onPhotoDataSuccess(imageData) { var baseImg = imageData; $('#uploadPreUpImgSwapHtml').html('<img src="data:image/jpeg;base64,'+ baseImg +'" style="max-width:100%; width:auto; max-height:300px; height:auto;" / >'); $('#uploadPreBaseDataSwapHtml').html('<input type="hidden" id="chosenPictureData" value="'+ baseImg +'" />'); $('#uploadPictureBtnHideHtml').fadeIn(); }
Is there a success callback that returns the way the device was held during shooting, so I can send it to a file for upload and rotate the image correctly?
source share