I know this is a little too late, but there is a way (iPad only). You can use the standard org.apache.cordova.camera -Plugin. But you have to tune it a little
First, subclass CDVCameraPicker so that you can switch overlay via cordova-api:
CDVCameraPicker + Overlay.h:
#import "CDVCamera.h" @interface CDVCameraPicker (Overlay) @property (nonatomic, strong) id showOverlay; @end
CDVCameraPicker + Overlay.m:
Then add these lines to CDVCamera.m immediately after checking ImagePickerSourceType (line 132)
if ([cameraPicker.showOverlay intValue] == 1) { UIImageView *overlay = [[UIImageView alloc] initWithFrame:CGRectMake(0, 0, 768, 1024)]; overlay.contentMode = UIViewContentModeScaleAspectFill; overlay.image = [UIImage imageNamed:@"overlay.png"]; }
Remember to import your subcategorized CameraPicker into CDVCamera.m #import "CDVCameraPicker+Overlay.h"
No, you need to edit Camera.js Add this line under other parameters
var showOverlay = getValue(options.showOverlay, false);
Then add var to args -Array to the last index. And so it is. Now you can switch your overlay as follows:
navigator.camera.getPicture(onSuccess, onFail, { quality: 40, destinationType: Camera.DestinationType.FILE_URI, sourceType: Camera.PictureSourceType.CAMERA, encodingType: Camera.EncodingType.JPEG, correctOrientation: true, saveToPhotoAlbum: true, showOverlay: false });