ribizli / ng2-imageupload

A component which resizes the selected file image
29 stars 10 forks source link

Some images are not resizing properly #3

Closed Flyrell closed 8 years ago

Flyrell commented 8 years ago

I'm working on a little image-upload form in Angular 2. Your tool is pretty amazing and useful, but when it comes to images with ratio 1:1 it wont cropp and I don't know why is that. I'm uploading image with resolution 800x800 and I have the setting set for resizeMaxWidth: 400px; I'm not using the MaxHeight property because the height is not relevant for me... I expect the image to resize with the same ration to 400x400 and it's not happening. Is it a problem with the package or am I misunderstanding something here?

It also happens when I upload image with height bigger than the width.

ribizli commented 8 years ago

I'll check this sometime, but I don't really have time currently.

ribizli commented 8 years ago

But I've checked the code shortly, and I see, that you need to use the resizeMaxHeight property too, until I'll fix this.