Software Archive
Read-only legacy content
Announcements
This community is designed for sharing of public information. Please do not share Intel or third-party confidential information here.
17065 Discussions

Need to capture images inside the rectangular view using camera

Andreas_D_
Beginner
274 Views

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!

0 Kudos
2 Replies
Rakshith_K_Intel
Employee
274 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

Diego_Calp
Valued Contributor I
274 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

Reply