My application is working properly. It is able to take picture from camera and load into img tag on page.
I am only facing difficulty with the camera plugin option “saveToPhotoAlbum”.
when i make saveToPhotoAlbum to False then it is capturing image and i am getting image in the cache folder of application in android phone.
But when i make saveToPhotoAlbum to true then it is capturing image and storing it to gallary as well but also giving error in error callback that is “Error Capturing Image”. because of that i am unable to getting the path of captured image.
I am unable to find why i am getting this error. can any body help me to solve this problem.
My code is here:
Index.html
<div ng-controller="indexController">
<ion-content>
<div class="card">
<div class="item item-divider">
Take a picture
</div>
<div class="item item-image">
<img id="imgbox" class="item" src="{{cameraService.cameraimage}}" style="height: 350px;"/>
</div>
</div>
<div class="padding">
<button class="button button-block button-positive" ng-click="cameraService.takePhoto()">
Take New Photo
</button>
<button class="button button-block button-positive" ng-click="cameraService.fetchPhoto()">
Get From Gallery
</button>
</div>
</ion-content>
</div>
Android sometimes close the app, that opens the camera to free memory for the camera.
So in somecases my Moto G and G (2. edition) gets closed when i open the camera.
Do not recognized this behavior if i use saveToPhotoAlbum true.
Is you app still open afterwards or does it a restart?
hie…
i am new to ionic . i amd using ng cordova camera and i want to set the image name clicked by camera. is dere any way ??? please help me out…
if is dere any example . please share
In my case I have this problem increasing either the quality or width and height of the picture. I just can use 20 of quality as maximun, very poor. I downgrade the pluging and still have the problem. Anyone can help me? thank you