You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "Olivier VERMONT (JIRA)" <ji...@apache.org> on 2015/04/21 09:46:58 UTC
[jira] [Created] (CB-8879) [Windows] Camera picture has black/green
stripes that crop image
Olivier VERMONT created CB-8879:
-----------------------------------
Summary: [Windows] Camera picture has black/green stripes that crop image
Key: CB-8879
URL: https://issues.apache.org/jira/browse/CB-8879
Project: Apache Cordova
Issue Type: Bug
Components: Plugin Camera
Affects Versions: 3.8.0
Reporter: Olivier VERMONT
When a photo is taken with Windows Phone 8.1 device, the picture returned show black or green stripes. 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 : http://stackoverflow.com/questions/23709547/captured-photo-with-stripes
Here is what I tried without success :
var resolutions = capture.videoDeviceController.getAvailableMediaStreamProperties(Windows.Media.Capture.MediaStreamType.photo);
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(Windows.Media.Capture.MediaStreamType.photo, maxResolution)
Are I missing something ?
--
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