cstefanache / angular2-img-cropper

Angular 2 Image Cropper
MIT License
364 stars 135 forks source link

How to get cropped image in ts file with a specified with and height #285

Closed akshaysuresh92 closed 6 years ago

dhanarajp commented 6 years ago

this.cropperSettings2.croppedWidth = 200; this.cropperSettings2.croppedHeight = 200;

mentioned in sample usage also

hope you asked this one only.

akshaysuresh92 commented 6 years ago

@dhanarajp .. Thank you for the support.. My problem is I need a cropped image with height 56px and maximum width 160px. Height is fixed, width can be a maximum of 160px and a minimum of 56px. Image should be of any width between this.Is it possible??

web-dave commented 6 years ago

is this a valid feature request? I can privide params wich let you set a min/max for height and width. Is that what you are looking for?

web-dave commented 6 years ago

BTW. this repo has been moved. https://github.com/web-dave/ngx-img-cropper You have to install it with the new name

npm i -S ngx-img-cropper
akshaysuresh92 commented 6 years ago

@web-dave ya this is a valid feature .. will try it with " npm i -S ngx-img-cropper" and check

web-dave commented 6 years ago

I created a issue at the new repo for that with a link to this. I'll do this in march i guess.

akshaysuresh92 commented 6 years ago

Thank you for kind support

On Feb 14, 2018 4:35 PM, "David Müllerchen" notifications@github.com wrote:

I created a issue at the new repo for that with a link to this. I'll do this in march i guess.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/cstefanache/angular2-img-cropper/issues/285#issuecomment-365569812, or mute the thread https://github.com/notifications/unsubscribe-auth/AiCWgyk4HQVwEh5K4IBIjqDWXdAazo2Eks5tUr3igaJpZM4RmjIq .