Any angular2 image crop directive available?

和自甴很熟 提交于 2020-01-01 17:04:06

问题


Is there any angular2 image crop directive like ngImgCrop


回答1:


Yes we can use ng2-img-cropper component for the same, you just have to install the package named as ng2-img-cropper from the node using

npm install ng2-img-cropper --save

than just use the component by importing

import {ImageCropperComponent, CropperSettings, Bounds} from 'ng2-img-cropper';

Working plunker here For more info see here,

  • https://www.npmjs.com/package/ng2-img-cropper



回答2:


also check this for multiple uploader and cropper using angular typescript https://github.com/MMtechnolab/Angular-Typescript--2-8-Multiple-Image-Upload-and-Crop-.git Demo :http://mmangimgcrop.gear.host/ I had Also same issue in Angular 8 so i made some changes in ngx-image-cropper, It allows user to upload multiple images as u can see in below image

like this image it allows multiple image selection from your local system

and crop them by selecting Image Image Cropper



来源:https://stackoverflow.com/questions/38149250/any-angular2-image-crop-directive-available

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!