Tech Note: Centered, sized rows of logos

I’m wanting to do this quite a lot at the moment: a row of logos all of equal maximum width and height centered both vertically and horizontally stretched to fit by the biggest dimension Like this: Or this: A couple of times I’ve done this in conjunction...