I have a profile page where user saves his photos and after saving we render it on UI in particular width and height. Problem is user uploads irregular dimension images. When we try to put this on UI, it becomes distorted. What is the best possible solution for this? I can think of below.
- Don't allow user to upload image below some size.
- While uploading resize image - May distort.
- While displaying resize - may distort.
Please let me know in real world how is this handled.
I tried to resize using
http://ngmodules.org/modules/ng-image-resize
but still image looks distorted.