You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "Richard B Knoll (JIRA)" <ji...@apache.org> on 2015/10/10 01:52:05 UTC

[jira] [Commented] (CB-6367) Camera plugin failed to resize image to the specified target width and target height

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

Richard B Knoll commented on CB-6367:
-------------------------------------

I think that is the desired behavior. The [documentation|https://github.com/apache/cordova-plugin-camera#cameraoptions] states that aspect ratio is maintained when targetHeight and targetWidth are set (so they serve as more of a bounding box that the image is made to fit in rather than a size for the new image). Can anyone confirm that this is the case?

> Camera plugin failed to resize image to the specified target width and target height
> ------------------------------------------------------------------------------------
>
>                 Key: CB-6367
>                 URL: https://issues.apache.org/jira/browse/CB-6367
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Plugin Camera
>    Affects Versions: 3.4.0
>         Environment: iOS
> Cordova-ios 3.5.0-dev
> org.apache.cordova.camera 0.2.9-dev
> Device: iPod touch 5th iOS7.0.3
>            Reporter: glmnbeyond
>
> Steps to reproduce it:
> 1) Using createmobilespec.sh to create mobilespec project
> 2) Load mobile-spec tests
> 3) Navigate to "Camera" 
> 4) Set targetWidth as 50 and target height as 200.Leave other options as default.
> 5) Click "getPicture"
> 6) Fetch the captured picture from device(mobilespec/tmp/cdv_photo_00x.jpg)
> Results:
> The dimensions of the captured image is 50x50
> Expected:
> The dimensions of the captured image is 50x200



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

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org