Hi all, I created a component where users can click and upload an image. Is there a way to auto resize the image so that it always conforms to the size of the div? or even so that it does not go off the page?
Chris Laupama
1 year ago
You would do this via the style settings of the image element. Setting the height/width of the image element and then setting the object-fit to cover.