[ 
https://issues.apache.org/jira/browse/CB-9591?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15014228#comment-15014228
 ] 

Raghav commented on CB-9591:
----------------------------

I have been testing this issue on windows phone 8.1 and I believe it works as 
expected. According to the documentation, image is never scaled up, so 
basically the resize is driven by the lower of the targetwidth/targetheight 
specified and the image is resized keeping the original aspect ratio constant.

I tested on a 480 * 640 image and gave the following values:
targetwidth     targetheight      resultant-width    resultant-height
    100                   250                    100                     133
    200                   800                    200                     266
    700                   600                    450                     600

[~riknoll] : Can you confirm this is the behavior on other platforms?


> Retain aspect ratio when resizing camera image
> ----------------------------------------------
>
>                 Key: CB-9591
>                 URL: https://issues.apache.org/jira/browse/CB-9591
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Plugin Camera
>         Environment: Windows
>            Reporter: Murat Sutunc
>              Labels: Windows
>
> According to documentation and iOS/Android behavior, resized images should 
> retain ratio. Windows currently doesn't respect that.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to