You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "Jesse MacFadyen (JIRA)" <ji...@apache.org> on 2014/04/08 21:27:20 UTC

[jira] [Resolved] (CB-2387) navigator.camera.getPicture targetWidth/targetHeight loses aspect ratio in WP8

     [ https://issues.apache.org/jira/browse/CB-2387?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jesse MacFadyen resolved CB-2387.
---------------------------------

    Resolution: Fixed

> navigator.camera.getPicture targetWidth/targetHeight loses aspect ratio in WP8
> ------------------------------------------------------------------------------
>
>                 Key: CB-2387
>                 URL: https://issues.apache.org/jira/browse/CB-2387
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Plugin Camera, WP8
>    Affects Versions: 2.3.0
>         Environment: Tested on Visual Studio Emulator and Nokia Lumia 920
>            Reporter: Ole Martin Bakke
>            Assignee: Jesse MacFadyen
>            Priority: Minor
>
> It seesms like navigator.camera.getPicture with the targetWidth and targetHeight loses aspect ratio on WP8.
> navigator.camera.getPicture(onPhotoDataSuccess, onFail, {
>         quality: 80,
>         destinationType: destinationType.DATA_URL,
>         sourceType: source,
>         targetHeight: 640,
>         targetWidth: 640
>     });
> Returns a image which is 640px*640px although the cameras aspect ratio is 1,5:1
> The same app built for Android is OK.



--
This message was sent by Atlassian JIRA
(v6.2#6252)