kebs-drag-drop-crop-resize
v0.0.7
Published
This library was generated with [Angular CLI](https://github.com/angular/angular-cli) version 11.0.9.
Downloads
14
Readme
DragDropCropResize
This library was generated with Angular CLI version 11.0.9.
How to install
install the following npm modules
ng add @angular/material npm install ng2-file-upload --save npm i drag-drop-crop-resize --save npm i ngx-image-cropper --save
How to use
import the modules
import { ImageCropperModule } from 'ngx-image-cropper'; import { FileUploadModule } from 'ng2-file-upload'; import { MatDialogModule } from '@angular/material/dialog'; import { DragDropCropResizeModule } from "drag-drop-crop-resize"
imports:[ ImageCropperModule, FileUploadModule, MatDialogModule, DragDropCropResizeModule ]
<ngx-drag-drop-crop-resize
(croppedImage)="getCroppedImage($event)" oImgHeight = "11rem"
oImgWidth = "15rem">
</ngx-drag-drop-crop-resize>properties
- oImgHeight - output image height
- oImgWidth - output image width
peer Dependencies
- Angular Material
- ngx-image-cropper
- ng2-file-upload
