[
https://issues.apache.org/jira/browse/CB-10139?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15275414#comment-15275414
]
ASF GitHub Bot commented on CB-10139:
-------------------------------------
GitHub user kicken opened a pull request:
https://github.com/apache/cordova-plugin-camera/pull/210
CB-10139 browser: Respect target width and height
Fixes [CB-10139 Camera plugin is cropping image taked from camera in
browser platform](https://issues.apache.org/jira/browse/CB-10139).
Cropping occurs due to the canvas's with and height not being set. This
patch sets the canvas width and height to the values specified in the options
given to getPicture.
Tested in recent versions of Chrome, Firefox, and Edge and found no
problems.
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/kicken/cordova-plugin-camera cb-10139
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/cordova-plugin-camera/pull/210.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #210
----
commit 5ce09dc17ea3c3c11a4a4e099f8ddc6cc8803eb9
Author: Keith M <[email protected]>
Date: 2016-05-07T18:36:33Z
CB-10139 browser: Respect target width and height
----
> Camera plugin is cropping image taked from camera in browser platform
> ---------------------------------------------------------------------
>
> Key: CB-10139
> URL: https://issues.apache.org/jira/browse/CB-10139
> Project: Apache Cordova
> Issue Type: Bug
> Components: Plugin Camera
> Reporter: Jonathan André Schweder
> Assignee: Tim Barham
> Labels: browser
>
> Any photo that I take with the plugin "cordova-plugin-camera" in browser
> platform is cropping the image with size 300x150, this happing also with
> "allowEdit" set too false.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]