What's the best way to have images sized properly?

In another thing, i had a table with preset sizes and positions to use for an image, that worked well but now i need to make something else with those images, where some of them have more height than width, and some have more width than height. Is there any better way to handle this other than the approach i used before?

If you’re looking for size constraints, see the UISizeConstraint instance. Or, if you’re looking for aspect ratio constraints, look at the UIAspectRatioConstraint instance.
You’re probably also looking for something else, but I’m confused on what you’re looking for.

there are other forum posts on getting the original resolution of uploaded image assets, but I don’t think it’s officially supported yet.
if you have the sizes already, then you can use ui constraints like testylike said

then i guess i will need to make preset sizes for this aswell

actually turns out, if i take the uploaded images aspect ratio and put that as the ratio in the UIAspectRatioConstraint it will turn out just well enough for it