My current project involves a large number of images with varying resolutions.
The issue I'm facing is that each image has different dimensions, ranging from small 200x600 to massive 3000x5000 ones!
I've been attempting to figure out a way to resize all the images to a maximum of 300x300 pixels while maintaining their original proportions. Basically, I want wide images to stay wide but within the confines of 300x300 pixels. However, I've been struggling to achieve this correctly regardless of the image size.
This is what I have attempted so far:
Max-Height:300px;
Max-Width:300px;
Unfortunately, it's not working as well as I had hoped. Any suggestions on how I can tackle this problem?