Questions tagged [getpicture]

An Apache Cordova camera function, getPicture takes a photo using the camera or retrieves a photo from the device's album.

An Apache Cordova camera function, getPicture takes a photo using the camera or retrieves a photo from the device's album.

Source: Apache Cordova getPicture documentation

24 questions
4
votes
1 answer

PhoneGap's getPicture() call does not save to the Gallery on Android Phone

I've been attempting to use the PhoneGap functionality to take a picture with my Android phone and have it saved to the phone's gallery. I didn't have any problems getting their Full example project up and running, but the code never saves the…
shmattman
  • 71
  • 2
  • 5
3
votes
1 answer

How to get png pictures with Cordova 3.5 on Android

I'm trying to retrieve a PNG picture using cordova-plugin-camera, with that code : navigator.camera.getPicture(onPictSuccess, onFailPict, { quality: 50, encodingType:Camera.EncodingType.PNG,…
r121
  • 274
  • 1
  • 6
3
votes
3 answers

phonegap/cordova getPicture from photolibrary file-transfer not working

I experience some problem in combining Cordova's camera.getPicture plugin and their FileTransfer.upload plugin. The weirdest thing is that everything works well when I take the picture from camera, and not when I retrieve it from library. The issue…
Thom Hubers
  • 92
  • 1
  • 10
2
votes
1 answer

Cordova app crashes when the file access permission is denied

For a cordova/phonegap app, I am using cordova-plugin-camera to fetch local files. and when invoking the navigator.camera.getPicture in android 6.0.1 devices a permission pop up appears asking permission to access files. On granting the permission…
mobiledevnewbie
  • 657
  • 1
  • 5
  • 10
2
votes
0 answers

Cordova 5.0.0 getPicture works once, fails on second getPicture

I use the standard documentation implementation to obtain a picture from a gallery and show that on the screen. The platform is android. I press a button "picture from gallery" A dialog opens from which I choose gallery. The gallery opens and I…
Boris Kingma
  • 261
  • 2
  • 6
2
votes
1 answer

AxHost.GetPictureFromIPicture() method missing, retrieving picture (attachment) from MS Access database

I'm trying to use AxHost.GetPictureFromIPicture() to get a GIF image (saved as an attachment type) from MS Access 2013 database file (*.accdb) - convert it to Image so I can display it in a PictureBox. But the method is not there! :( Am I missing…
Forrest G
  • 21
  • 1
2
votes
1 answer

Phonegap - give user option of PictureSourceType

just starting out with this: My PhoneGap app at some point uploads images to a server through a form. I can get the image from the CAMERA and I can get the image from the PHOTOLIBRARY. Is there a way of specifying multiple sources for the…
Likwid_T
  • 2,808
  • 20
  • 40
1
vote
1 answer

Get phone orientation at moment picture is taken with cordova-plugin-camera

I have a Cordova app which uses cordova-plugin-camera to take pictures. I need to capture the phone orientation at the instant the picture is taken. I know how to use DeviceOrientation to get the phone orientation, but the problem is that if I…
user663031
1
vote
1 answer

How I can get specific picture on a website using curl xpath in php

Through this code I can get the specific text but my problem is how I can get the specific picture on a website through this code. Can anyone help, I am stuck at this point.
Muslim Mir
  • 13
  • 3
1
vote
1 answer

Advanced Installer: Show preview Pictures for every Feature

First Question: Is it possible to show the Users preview Pictures for every Feature? If they go with the mouse on the Feature I want to have a description and a preview Picture from the elements to install! For example: for a Game different…
1
vote
1 answer

"Don't make functions within a loop." lint error. What is the correct way to write it?

The controller code is given below. What is the correct way to solve this? $scope.photoData = []; $cordovaImagePicker.getPictures(options).then(function (results) { for (var i = 0; i < results.length; i++) { $scope.photoData.push(results[i]); …
Divya G
  • 39
  • 1
  • 8
1
vote
0 answers

cordova: send contact photos to my server

How to send photos from android contacts to my server ? I'm using cordova 2.9.0 var file = 'content://com.android.contacts/contacts/1/photo'; Camera.DestinationType.DATA_URL = file; navigator.camera.getPicture(function(imageURI){ …
0
votes
1 answer

Cordova: Access image in Android's cache or files folder from an html file

I'm using the cordova-plugin-camera to get a picture from the album with navigator.camera.getPicture. to destinationType: destinationType.FILE_URI. This returns me a File_URI =…
0
votes
0 answers

In cordova navigator.camera.getPicture function, data url does not return gps longitude latitude exif data

I have a cordova 7.0.1 mobile application with PhoneGap and cordova-plugin-camera 4.0.3. I would like to get the gps longitude, latitude information from the exif data both on Android and iOS, also with capturing a picture and adding one from the…
0
votes
1 answer

I want to change the text of "your usage message" in alert of getPicture - ionic ios

I want to change the text of "your usage message" as shown in the image. I'm using ionic and it only happens to iOS, the functions of getPicture con CameraOptions and ImagePickerOptions my code: sel_photo(){ let options:ImagePickerOptions = { …
1
2