cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF GitHub Bot (JIRA)" <>
Subject [jira] [Commented] (CB-8879) [Windows] Camera picture has black/green stripes that crop image
Date Tue, 12 May 2015 23:27:00 GMT


ASF GitHub Bot commented on CB-8879:

GitHub user muratsu opened a pull request:

    CB-8879 fix stripe issue with correct aspect ratio

    This fixes the stripe issue we had on windows phone 8+. 
    The fix was to set up resolutions with a common aspect ratio. Default aspect ratio is
1.78 (hd). 

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

    $ git pull CB-8879

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

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #94
commit 4710faa91d86e46df1d66c24080b55cd8d86d459
Author: Murat Sutunc <>
Date:   2015-05-12T00:09:43Z

    CB-8879 fix stripe issue with correct aspect ratio


> [Windows] Camera picture has black/green stripes that crop image
> ----------------------------------------------------------------
>                 Key: CB-8879
>                 URL:
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Plugin Camera
>    Affects Versions: 3.6.0
>         Environment: windows
>            Reporter: Olivier VERMONT
>            Assignee: Murat Sutunc
>              Labels: camera, resolution, stripes, windows-phone-81
> When a photo is taken with Windows Phone 8.1 device Nokia Lumia 735, the picture returned
shows black or green stripes on the sides and is out of shape. It seems this is related to
photo resolution but I can't get it fixed in JS.
> It seems to be quite a common problem with the Media Capture API and people solved issue
in C# here is an illustration :
> Here is what I tried without success :
> var resolutions = capture.videoDeviceController.getAvailableMediaStreamProperties(;
> var maxWidth = 0;
> var maxResolution = null;
> for(var i=0; i<resolutions.length; i++){
> 	//console.log(resolutions[i].width);
> 	if(resolutions[i].width > maxResolution){
> 		maxWidth = resolutions[i].width;
> 		maxResolution = resolutions[i];
> 	}
> }					
> capture.videoDeviceController.setMediaStreamPropertiesAsync(,
> Am I missing something ?

This message was sent by Atlassian JIRA

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message