I allow my user to post images of different resolutions. I then use php to fit the to desired size and to reduce the size taken for these images. The image is 400x360px. But the problem is with the images after resizing. The images shrink like:
If the ratio of the image is same. Then the image is not affected. Is there any strategy or a php function to the image perfectly. I know image with different size can be resized only in this way. I want to know if there is any way for displaying the images?