I am creating a website in which we will be importing tons of image files and we want to create functionality to scale down the images so they fit within a certain area, but remain in proportion. The display area is 200 x 200, and we have included light-gray boxes so there is a clear divider, since each image within the box can potentially be different in size to the one next to it.
We need the images to resize to fit in the 200 x 200 area, but remain in proportion. The images range in various sizes, so we cannot just manually plug them in. So for example, one image could be 220 x 300 (just an example) and the image should scale down to fit in the 200 x 200 in proportion.
Thanks for your help.
We need the images to resize to fit in the 200 x 200 area, but remain in proportion. The images range in various sizes, so we cannot just manually plug them in. So for example, one image could be 220 x 300 (just an example) and the image should scale down to fit in the 200 x 200 in proportion.
Thanks for your help.