I operate a website where users have the ability to upload their photos. I am in the process of preparing a page on which all uploaded images will be showcased in an organized manner. The challenge lies in the fact that some individuals upload pictures in resolutions of 400x400px, while others opt for 1400x800px or 300x500px.
For the display page, I want each image to be shown at a consistent size of 100x200px. Initially, I attempted manually adjusting the dimensions of the images by using:
<img src="img.jpg" style="width: 100px; height: 200px" />
However, this resulted in poor image quality with blurriness. What would be the most effective approach to tackle this issue? Should I consider cropping a section of 100x200px from each image for display purposes? If so, how can this be achieved?