drag-drop-crop-resize
TypeScript icon, indicating that this package has built-in type declarations

0.0.4 • Public • Published

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" 
            (isImageDeleted) = "isTheImageDeleted($event)"
            oImgWidth = "15rem">
            </ngx-drag-drop-crop-resize>
    

properties

  • oImgHeight - output image height
  • oImgWidth - output image width

peer Dependencies

  1. Angular Material
  2. ngx-image-cropper
  3. ng2-file-upload

Package Sidebar

Install

npm i drag-drop-crop-resize

Weekly Downloads

10

Version

0.0.4

License

none

Unpacked Size

156 kB

Total Files

21

Last publish

Collaborators

  • amalanush