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/07 02:28:26 UTC
[jira] [Commented] (CB-1859) camera.getPicture should use scaled
photo data only when it's bigger than targetWidth / targetHeight
[ https://issues.apache.org/jira/browse/CB-1859?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14946063#comment-14946063 ]
Richard B Knoll commented on CB-1859:
-------------------------------------
[This comment|https://issues.apache.org/jira/browse/CB-5942?focusedCommentId=14140059&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-14140059] in CB-5942 does confirm that no-upscaling should be the default behavior
> camera.getPicture should use scaled photo data only when it's bigger than targetWidth / targetHeight
> ----------------------------------------------------------------------------------------------------
>
> Key: CB-1859
> URL: https://issues.apache.org/jira/browse/CB-1859
> Project: Apache Cordova
> Issue Type: Improvement
> Components: Plugin Camera
> Affects Versions: 2.2.0
> Environment: Android, iOS
> Reporter: Yutaka Yamaguchi
> Assignee: Max Woghiren
> Priority: Minor
>
> camera.getPicture always use scaled photo data even if it's smaller than targetWidth/targetHeigth.
> I think it's better to use original one instead if so.
> (I found the related stackoverflow question
> http://stackoverflow.com/questions/13101255/phonegap-ios-camera-resizing-only-if-photo-bigger-then-targetheight-targetwi )
> = steps to reproduce =
> 1. set targetWidth 800 in your script.
> 2. execute script and use camera.getPhoto function (use photo library)
> 3. use photo which size is smaller than 800px (e.g. 400px) in photo library.
> = actual behavior =
> return scaled photo to 800px (doubled size of original photo)
> = expected behavior =
> return original photo
--
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