You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cordova.apache.org by rakatyal <gi...@git.apache.org> on 2016/02/04 21:15:31 UTC

[GitHub] cordova-plugin-camera pull request: CB-10541: Changing default max...

GitHub user rakatyal opened a pull request:

    https://github.com/apache/cordova-plugin-camera/pull/162

    CB-10541: Changing default maxResoltion to be highestAvailable for Ca…

    …meraCaptureUI

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/MSOpenTech/cordova-plugin-camera raghav/maxRes

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/cordova-plugin-camera/pull/162.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 #162
    
----
commit 76ad059c9c1749a04ba5b61a3d34996e328c6463
Author: Raghav Katyal <ra...@microsoft.com>
Date:   2016-02-04T20:14:16Z

    CB-10541: Changing default maxResoltion to be highestAvailable for CameraCaptureUI

----


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

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


[GitHub] cordova-plugin-camera pull request: CB-10541: Changing default max...

Posted by rakatyal <gi...@git.apache.org>.
Github user rakatyal commented on a diff in the pull request:

    https://github.com/apache/cordova-plugin-camera/pull/162#discussion_r51945199
  
    --- Diff: src/windows/CameraProxy.js ---
    @@ -710,7 +710,10 @@ function takePictureFromCameraWindows(successCallback, errorCallback, args) {
         var UIMaxRes = WMCapture.CameraCaptureUIMaxPhotoResolution;
         var totalPixels = targetWidth * targetHeight;
     
    -    if (totalPixels <= 320 * 240) {
    +    if (targetWidth == -1 && targetHeight == -1) {
    --- End diff --
    
    If targetWidth and targetHeight are not specified, they are initialized to -1. So even if we initialize, it will be changed to verySmallQvga in the present if condition.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

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


[GitHub] cordova-plugin-camera pull request: CB-10541: Changing default max...

Posted by asfgit <gi...@git.apache.org>.
Github user asfgit closed the pull request at:

    https://github.com/apache/cordova-plugin-camera/pull/162


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

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


[GitHub] cordova-plugin-camera pull request: CB-10541: Changing default max...

Posted by riknoll <gi...@git.apache.org>.
Github user riknoll commented on the pull request:

    https://github.com/apache/cordova-plugin-camera/pull/162#issuecomment-180072860
  
    Alright. LGTM


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

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


[GitHub] cordova-plugin-camera pull request: CB-10541: Changing default max...

Posted by nikhilkh <gi...@git.apache.org>.
Github user nikhilkh commented on a diff in the pull request:

    https://github.com/apache/cordova-plugin-camera/pull/162#discussion_r51944877
  
    --- Diff: src/windows/CameraProxy.js ---
    @@ -710,7 +710,10 @@ function takePictureFromCameraWindows(successCallback, errorCallback, args) {
         var UIMaxRes = WMCapture.CameraCaptureUIMaxPhotoResolution;
         var totalPixels = targetWidth * targetHeight;
     
    -    if (totalPixels <= 320 * 240) {
    +    if (targetWidth == -1 && targetHeight == -1) {
    --- End diff --
    
    Should we just initialize `maxRes` to higestAvailable on declaration instead of putting another if?


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

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


[GitHub] cordova-plugin-camera pull request: CB-10541: Changing default max...

Posted by riknoll <gi...@git.apache.org>.
Github user riknoll commented on the pull request:

    https://github.com/apache/cordova-plugin-camera/pull/162#issuecomment-180070027
  
    So does this still leave us open to the possibility of having the plugin crash when certain combinations of width and height are passed?


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

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


[GitHub] cordova-plugin-camera pull request: CB-10541: Changing default max...

Posted by nikhilkh <gi...@git.apache.org>.
Github user nikhilkh commented on a diff in the pull request:

    https://github.com/apache/cordova-plugin-camera/pull/162#discussion_r51945467
  
    --- Diff: src/windows/CameraProxy.js ---
    @@ -710,7 +710,10 @@ function takePictureFromCameraWindows(successCallback, errorCallback, args) {
         var UIMaxRes = WMCapture.CameraCaptureUIMaxPhotoResolution;
         var totalPixels = targetWidth * targetHeight;
     
    -    if (totalPixels <= 320 * 240) {
    +    if (targetWidth == -1 && targetHeight == -1) {
    --- End diff --
    
    Of course! Totally missed it.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

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


[GitHub] cordova-plugin-camera pull request: CB-10541: Changing default max...

Posted by XiMnet <gi...@git.apache.org>.
Github user XiMnet commented on the pull request:

    https://github.com/apache/cordova-plugin-camera/pull/162#issuecomment-180514539
  
    
    
    Hi,
    
    
    We are away for the Chinese New Year celebration from 8 February 2016 to 12 February 2016. We will be back on 15th February 2016 (Monday).
    
    
    For any request which requires immediate attention, kindly contact Ms. Inez (012 &ndash; 3211 265) or Mr. Law (017 &ndash; 218 5918).
    
    
    Thank you very much for your continuous support. We wish you a Happy Chinese New Year and happy holidays.
    
    
    Cheers.
    
    XiMnet Malaysia Sdn Bhd
    
    



---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

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


[GitHub] cordova-plugin-camera pull request: CB-10541: Changing default max...

Posted by rakatyal <gi...@git.apache.org>.
Github user rakatyal commented on the pull request:

    https://github.com/apache/cordova-plugin-camera/pull/162#issuecomment-180071998
  
    @riknoll: Yes. I have created a separate Jira bug to tackle that. We are waiting for the response from Windows team on the approach.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

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