Cordova Camera Plugin + Image Cropping Help

I need a way to keep image height and width the same for all images whether added by camera or photo library. While adding a image from the photo library, the image height gets cropped to the native image height instead of keeping the background when saved. I need to keep the black background, so all of the images are uploaded at same height.

const options: CameraOptions = {
        quality: 100,
        targetHeight: 200,
        targetWidth: 200,
        allowEdit: true

I have allowEdit set to true, and height and width set to 200.

As you can see the first images height is smaller than the second image.

If you don’t get any better answers, the HTML <canvas> element basically gives you an image manipulation suite for free.

Hi, follow this video guide: