[
https://issues.apache.org/jira/browse/CB-760?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Shazron Abdullah resolved CB-760.
---------------------------------
Resolution: Fixed
Fixed in commit -
http://git-wip-us.apache.org/repos/asf/incubator-cordova-ios/commit/9d7ed2e2
constrain image to max of targetWidth and targetHeight
> 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
>
> Attachments: photo_003.jpg
>
>
> 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