# Put picture on camera while taking a photo

**URL:** <https://forum.ionicframework.com/t/put-picture-on-camera-while-taking-a-photo/96370>\
**Category:** Ionic Native\
**Created:** [June 29, 2017, 11:37pm UTC](https://forum.ionicframework.com/t/put-picture-on-camera-while-taking-a-photo/96370 "2017-06-29T23:37:04Z")\
**Posts on this page:** 8\
**Page:** 2

<div class="post-metadata">

**Author:** ![Gunnarkd](https://avatars.discourse-cdn.com/v4/letter/g/aca169/32.png) [@Gunnarkd](https://forum.ionicframework.com/u/Gunnarkd)\
**Post date:** [November 2, 2017, 8:49am UTC](https://forum.ionicframework.com/t/put-picture-on-camera-while-taking-a-photo/96370/21 "2017-11-02T08:49:46Z")

</div>

Does the console give you any info?  
Are you simulating or running on actual hardware?  
My app is working fine on iPhone. Try removing ios and adding it again

---

<div class="post-metadata">

**Author:** ![dram3vlh](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/dram3vlh/32/114732_2.png) [@dram3vlh](https://forum.ionicframework.com/u/dram3vlh)\
**Post date:** [November 2, 2017, 9:55am UTC](https://forum.ionicframework.com/t/put-picture-on-camera-while-taking-a-photo/96370/22 "2017-11-02T09:55:34Z")

</div>

When I check outputs in xcode, its like;

This app has crashed because it attempted to access privacy-sensitive data without a usage description. The app’s Info.plist must contain an NSCameraUsageDescription key with a string value explaining to the user how the app uses this data.

---

<div class="post-metadata">

**Author:** ![Gunnarkd](https://avatars.discourse-cdn.com/v4/letter/g/aca169/32.png) [@Gunnarkd](https://forum.ionicframework.com/u/Gunnarkd)\
**Post date:** [November 2, 2017, 12:47pm UTC](https://forum.ionicframework.com/t/put-picture-on-camera-while-taking-a-photo/96370/23 "2017-11-02T12:47:12Z")

</div>

Sounds like you have permission problems for using the camera in IOS.  
Try removing and adding the camera plugins again. And probably the whitelist plugin as well

---

<div class="post-metadata">

**Author:** ![umefarooq](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/umefarooq/32/94266_2.png) [@umefarooq](https://forum.ionicframework.com/u/umefarooq)\
**Post date:** [November 3, 2017, 11:27pm UTC](https://forum.ionicframework.com/t/put-picture-on-camera-while-taking-a-photo/96370/24 "2017-11-03T23:27:39Z")

</div>

HI @Gunnarkd and @dram3vlh  
i have follow this forum threads for camera preview and it working fine, i just want to save image with overlay image can somebody share code how i can do that. i want to marge 2 images and save as one.

---

<div class="post-metadata">

**Author:** ![Gunnarkd](https://avatars.discourse-cdn.com/v4/letter/g/aca169/32.png) [@Gunnarkd](https://forum.ionicframework.com/u/Gunnarkd)\
**Post date:** [November 4, 2017, 12:04am UTC](https://forum.ionicframework.com/t/put-picture-on-camera-while-taking-a-photo/96370/25 "2017-11-04T00:04:08Z")

</div>

You can use html5 canvas for this, but when I played around with it to rotate an captured image, it was quite slow for large images. Simply drawing onto the image might be faster than doing translate functions.

Take a look at this, the drawImage() function is probably most interresting for you:  
[https://www.w3schools.com/tags/ref\_canvas.asp](https://www.w3schools.com/tags/ref_canvas.asp)

This guy works with canvas in IonicJS, but he uses toDataURL() towards the end, which might help you:

> **[Using HTML5 Canvas to build and share images from an Ionic/Cordova app](https://baxeico.wordpress.com/2015/06/04/html5-canvas-image-share-ionic-cordova/)**
>
> My latest hybrid app, CoolKids, let you track good and bad actions of your kids to help them in self-improving. I thought it would be nice to share kids achievements with family and friends on soci…

---

<div class="post-metadata">

**Author:** ![umefarooq](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/umefarooq/32/94266_2.png) [@umefarooq](https://forum.ionicframework.com/u/umefarooq)\
**Post date:** [November 9, 2017, 6:58pm UTC](https://forum.ionicframework.com/t/put-picture-on-camera-while-taking-a-photo/96370/27 "2017-11-09T18:58:48Z")

</div>

i have tried i am able to create canvas image with overlay image but i want to make something following image.

 ![IMG_5365](https://global.discourse-cdn.com/ionicframework/original/3X/9/0/905409b7bf27983d07bee49cafc8afd6e5cf8348.JPG)

---

<div class="post-metadata">

**Author:** ![umeshionic1234](https://avatars.discourse-cdn.com/v4/letter/u/c37758/32.png) [@umeshionic1234](https://forum.ionicframework.com/u/umeshionic1234)\
**Post date:** [February 26, 2018, 8:06am UTC](https://forum.ionicframework.com/t/put-picture-on-camera-while-taking-a-photo/96370/28 "2018-02-26T08:06:12Z")

</div>

hello I have one problem ,in whatsapp application when I click on camera icon …how that list  
of images are display from gallery directly ??… please help me …am not  
able to find solution to this task “how to display list of horizontal  
images in ionic application” …i use camera ,imagepicker,imageviewer…  
plugin but still not find solution

---

<div class="post-metadata">

**Author:** ![umefarooq](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/umefarooq/32/94266_2.png) [@umefarooq](https://forum.ionicframework.com/u/umefarooq)\
**Post date:** [July 29, 2018, 7:59pm UTC](https://forum.ionicframework.com/t/put-picture-on-camera-while-taking-a-photo/96370/29 "2018-07-29T19:59:56Z")

</div>

hi try this plugin these really worked for me

> **[wayneparrott/cordova-plugin-ezar-snapshot](https://github.com/wayneparrott/cordova-plugin-ezar-snapshot)**
>
> Contribute to cordova-plugin-ezar-snapshot development by creating an account on GitHub.

  

> **[wayneparrott/cordova-plugin-ezar-videooverlay](https://github.com/wayneparrott/cordova-plugin-ezar-videooverlay)**
>
> cordova-plugin-ezar-videooverlay - Provides video preview with the Cordova WebView overlaying it.

  
both plugins are really helpful you can create AR app in ionic.

[Previous page](https://forum.ionicframework.com/t/put-picture-on-camera-while-taking-a-photo/96370.md?page=1)
