Software Archive
Read-only legacy content
17061 토론

Need to capture images inside the rectangular view using camera

Andreas_D_
초급자
703 조회수

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 포인트
2 응답
Rakshith_K_Intel
703 조회수

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 포인트
Diego_Calp
소중한 기여자 I
703 조회수

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 포인트
응답