Enlcxx / angular2-resizing-cropping-image

Resize, rotate and crop images(cropper) for Angular 8
https://alyle.io/components/image-cropper
32 stars 6 forks source link

How can I change Image size width and height? #11

Closed sharmaprashant232 closed 6 years ago

sharmaprashant232 commented 6 years ago

Hello! There is always fixed width and height of image 230x150. I want to change it. image I thought importing ResizingCroppingImagesComponent in my component and I can change default values of that variables but when I did this, I got error: No providers so I added it in providers in my module. Then I got error No providers for ElementRef. How to solve this issue? Please help me.

alyleui commented 6 years ago

Hi! @sharmaprashant232, I'm sorry for the delay, there is a new version of this module

demo

example:

@ViewChild(LyResizingCroppingImages) img: LyResizingCroppingImages;
 myConfig: LyResizingCroppingImagesConfig = {
  width: 150, // Default `250`
  height: 150 // Default `200`
};