[
https://issues.apache.org/jira/browse/CB-760?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13277295#comment-13277295
]
Shazron Abdullah commented on CB-760:
-------------------------------------
Confirmed.
Test case:
{code}
// Wait for Cordova to load
//
document.addEventListener("deviceready", onDeviceReady, false);
// Cordova is ready
//
function onDeviceReady() {
navigator.camera.getPicture(onSuccess, onFail, { quality: 50,
destinationType:
Camera.DestinationType.FILE_URI,
saveToPhotoAlbum: 1,
targetWidth: 768, targetHeight: 1024
});
}
function onSuccess(imageURI) {
alert(imageURI);
}
function onFail(message) {
alert('Failed because: ' + message);
}
{code}
... then go on disk in the tmp folder for the app, grab the .jpg.
> Camera returns incorrect image size
> -----------------------------------
>
> Key: CB-760
> URL: https://issues.apache.org/jira/browse/CB-760
> Project: Apache Cordova
> Issue Type: Bug
> Components: iOS
> Affects Versions: 1.7.0
> Environment: iPad 2
> Reporter: Rob Gillan
> Assignee: Shazron Abdullah
> Priority: Minor
> Fix For: 1.8.0
>
>
> When using navigator.camera.getPicture on an iPad2 / iOS5.1 (which has a
> camera image size of 720 x 960) the resultant image is returned with one
> dimension incorrect. The camera options are set to:
> quality: 50, targetWidth: 768, targetHeight: 1024, destinationType: 0,
> saveToPhotoAlbum: 1
> the resultant returned image is 769 x 1024.
> If the camera options are set to:
> quality: 50, targetWidth: 1024, targetHeight: 768, destinationType: 0,
> saveToPhotoAlbum: 1
> the resultant returned image is 1024 x 769.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira