cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Joe Bowser (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CB-10625) getPicture fails when getting a photo from the Photo Library
Date Tue, 16 Feb 2016 22:51:18 GMT

    [ https://issues.apache.org/jira/browse/CB-10625?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15149474#comment-15149474
] 

Joe Bowser commented on CB-10625:
---------------------------------

This is entirely dependent on which application we use when we get the image.  If we use the
Photos Application, it doesn't work, but it works better with the Samsung Galaxy S6 in that
it gets the correct file.  I'm not sure why the DocumentsContract.getDocumentId(uri) is causing
an exception when fed a Google Photos URI, but that's why this isn't working.  As far as a
fix, this isn't trivial, but this could be worked around by using the built in gallery application
on most devices.

> getPicture fails when getting a photo from the Photo Library
> ------------------------------------------------------------
>
>                 Key: CB-10625
>                 URL: https://issues.apache.org/jira/browse/CB-10625
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Plugin Camera
>    Affects Versions: Master, 6.0.0
>         Environment: cordova-plugin-camera 2.1.0, cordova-android 5.1.0, android 5.0.2,
no crosswalk
>            Reporter: Tom Nonk
>              Labels: Android
>
> Hi,
> Since I updated Cordova to 6.0.0, camera.getPicture always fails and returns: "error
retrieving image".
> Here are the parameters I use:
> {
> 	quality: 100,
> 	targetHeight: 250,
> 	targetWidth: 250,
> 	destinationType: Camera.DestinationType.FILE_URI,
> 	sourceType: navigator.camera.PictureSourceType.PHOTOLIBRARY,
> 	allowEdit: true,
> 	encodingType: Camera.EncodingType.JPEG,
> 	correctOrientation: true
> }
> Thanks by advance



--
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


Mime
View raw message