Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Beginner
90 Views

Need to capture images inside the rectangular view using camera

Hi Everyone, 

I'm wondering if I can do this with intel xdk camera plugin

camera-rectangle-overlay.png

 

Kindly suggest me how to do it with intel xdk

Thanks in advance!

Tags (2)
0 Kudos
2 Replies
Highlighted
90 Views

The basic camera plugin and intel.xdk camera plugin does not allow capturing a section of image.

You have to look for a Cordova plugin that does this or write your own.

Another way to achieve this is to crop the image after it is captured using camera plugin, there are javascript libraries available to crop image using File API. Here is a stackoverflow link that may help: http://stackoverflow.com/questions/11151995/crop-image-from-camera-before-upload-phonegap

0 Kudos
Highlighted
Valued Contributor I
90 Views

Hi,

Seems that there is a plugin to crop the image from camera or gallery:

https://github.com/LokeshPatel/Cordova-Android-CropImage-Plugin

I have not tried it

Best wishes,

Diego

0 Kudos