So I have a sponsor logo area on the site i’m working on and i’m wondering what the best way to do this is. It’s the age old problem of some of them being big and square and some being wide and short. I know Kirby can give me the widths and heights of images, but how would go about checking the width and height and making sure they are all the same height with the logo width being auto width?
I think I need to check for the longest edge and then add either a “tall-logo”, “wide-logo” or “square-logo” to it accordingly. Then i can do the scaling in CSS.