If only there was a way to know the aspect ratio of an image at the time of website authoring...
``` object-fit: cover ```
comes to mind as a client-side solution I used in the past for this problem
Generally, I'd agree that authoring time is some 9X% solution, though there remain edge cases.
I can't think of a good use case for auto generating arbitrarily large images, and as a user I wouldn't want to visit websites where the web designer thinks that's a good idea either.
What thos cases are is ... a good question, and my point is more thaat this can be done than to say why or that it's a good idea.
Upshot again is that image size need not be deterministic at authoring time.