Using an image’s natural dimensions

Hi all!

Is it possible to use an image’s natural dimensions (not scale, adjust height, etc.) and use those exactly?

My use case is that I need a designer to upload an image and the app to display it exactly as the designer uploaded it, not stretched to fill the space. But I, of course, need a max-width property so the image doesn’t break any containers when scaled down.


This topic was automatically closed after 70 days. New replies are no longer allowed.