danialfarid / ng-file-upload

Lightweight Angular directive to upload files with optional FileAPI shim for cross browser support
MIT License
7.87k stars 1.59k forks source link

use nfg-resize, The picture is distorted #2124

Open Dream-wu opened 5 years ago

Dream-wu commented 5 years ago

use ngf-resize="{quality: .8}"

and then this picture is distored,who can tell me why?

wdarking commented 5 years ago

Same here

ricrempel commented 5 years ago

I've tested this issue a little. It seems to happen only when I upload from my iphone, with large vertical images. They're being squashed into a horizonal format. We're using only ngf-resize="{quality: 0.6}".

ricrempel commented 4 years ago

In my case it was a matter of setting ngf-fix-orientation="true". That solved it.