cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Richard B Knoll (JIRA)" <>
Subject [jira] [Commented] (CB-10721) getPicture takes at least 20 seconds to get me back to my app
Date Mon, 07 Mar 2016 22:08:40 GMT


Richard B Knoll commented on CB-10721:

I can reproduce this on a Galaxy S6 Edge +. The issue here is being caused by the {{encodingType}}
being set to PNG. The native camera application outputs a JPEG, which we convert to a PNG
when that flag is set. If you need a quick fix, just don't use the PNG {{encodingType}}. I
have verified that using the JPEG {{encodingType}} is significantly faster. There also isn't
really any reason to use the PNG format on Android; the native application outputs a JPEG,
so you don't gain any quality by using PNG. That being said, the plugin's current behavior
is clearly wrong. After discussing this with Nikhil, there are two action items that we need
to investigate:

1. We need to verify that we are using Android's image conversion APIs correctly
2. The image processing should be asynchronous. I believe it already is when you use the {{SAVEDPHOTOALBUM}}
or {{PHOTOLIBRARY}} sources, just not for camera for some reason

Thanks for reporting this!

> getPicture takes at least 20 seconds to get me back to my app
> -------------------------------------------------------------
>                 Key: CB-10721
>                 URL:
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Plugin Camera
>    Affects Versions: 2.1.0
>         Environment: Android 5.1.0
>            Reporter: Gregor
>              Labels: Android, triaged
> Using Cordova Camera plugin with function getPicture() takes a picture without any problem
(when source is CAMERA). Default camera app opens, I take a photo, confirm it, then a black
screen shows for around 20 seconds before I'm thrown back to my app with success callback.
> Picking photo from library doesn't have this issue.
> Samsung Galaxy S6 with Android 5.1.0.

This message was sent by Atlassian JIRA

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

View raw message