0
在我的基於PhoneGap的應用程序,當我在風景拍攝圖像它在一個縱向模式顯示,我添加的代碼定位問題
correctOrientation:真
但仍須以縱向模式顯示風景圖像。此處的代碼爲
function capturePhoto()
{
navigator.camera.getPicture(onPhotoURISuccess,fail, {
quality: 20,
correctOrientation: true,
destinationType:Camera.DestinationType.FILE_URI
});
}
function onPhotoURISuccess(imageURI)
{
var options = new FileUploadOptions();
options.fileKey = "file";
options.fileName = imageURI.substr(imageURI.lastIndexOf('/') + 1);
options.mimeType = "image/jpeg";
if(App.gvars.userpic=='1')
{
document.getElementById('userpicw').src = imageURI;
}
if(App.gvars.userpic=='2')
{
document.getElementById('productpic').src = imageURI;
}
if(App.gvars.userpic=='3')
{
document.getElementById('userpicws').src = imageURI;
}
var largeImage = document.getElementById('smallImage');
largeImage.style.display = 'block';
App.gvars.userpic='0';
var params = new Object();
params.value1 = "Fastabuy";
options.params = params;
options.chunkedMode = false;
}
我應該怎麼做。
你是否使用php打亂了圖像服務器端? – Ved
你可以旋轉服務器端的圖像 – Ved
是的im上傳圖像服務器 – ioseve