Software Archive
Read-only legacy content
17061 Discussions

Need to capture images inside the rectangular view using camera

Andreas_D_
Beginner
406 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
406 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
Diego_Calp
Valued Contributor I
406 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
Reply