You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "ASF GitHub Bot (JIRA)" <ji...@apache.org> on 2016/05/07 23:26:13 UTC

[jira] [Commented] (CB-10139) Camera plugin is cropping image taked from camera in browser platform

    [ 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 <ke...@aoeex.com>
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: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org