I am trying to understand how facebook makes image without losing it's ratio but still use standard image size.
Have any idea?
This is basicly what i want to do:
Edit:
Lets say we have 16:9 image and i want it to fit a square lets say 200x200px, the image will stretch, i dont want that.. i want that the image is resized to fit the 200x200px but "slice" it and show a part of the image.
Example Stretched: http://img.movavi.com/how-to/ar3/01.jpg
Example corrected: http://img.movavi.com/how-to/ar3/02.jpg
Thanks