nstudio / nativescript-camera-plus

MIT License
79 stars 50 forks source link

width, height, autoSquareCrop, keepAspectRatio not working #127

Closed srokatonie closed 3 years ago

srokatonie commented 4 years ago

Steps to reproduce:

  1. Clone repo and run demo-ng for iOS
  2. Update capture.component.ts to
    public takePicFromCam(): void {
    console.log("TAKING PICTURE:")
    this.cam.takePicture({ 
      saveToGallery: true,
      width: 500,
      height: 500,
      autoSquareCrop: true,
      keepAspectRatio: false
    });
    }
  3. Update preview container in capture.component.html:
    <Image row="1" col="1" class="preview-image" width="100" [src]="imageSource"></Image>

Outcome:

IMG_5085

Should be:

  1. Picture square
  2. Size: smaller than original picture